We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d771d commit b792c58Copy full SHA for b792c58
lib/yarp.rb
@@ -89,7 +89,9 @@ def pretty_print(q)
89
end
90
91
def ==(other)
92
- other in Location[start_offset: ^(start_offset), end_offset: ^(end_offset)]
+ other.is_a?(Location) &&
93
+ other.start_offset == start_offset &&
94
+ other.end_offset == end_offset
95
96
97
def self.null
@@ -195,7 +197,9 @@ def pretty_print(q)
195
197
196
198
199
- other in Token[type: ^(type), value: ^(value)]
200
+ other.is_a?(Token) &&
201
+ other.type == type &&
202
+ other.value == value
203
204
205
0 commit comments