Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Ruby::Prism::Location#==
==(other)
lib/ruby/prism/parse_result.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/ruby/prism/parse_result.rb, line 668
def ==(other)
Location === other &&
other.start_offset == start_offset &&
other.end_offset == end_offset
end
Returns true if the given other location is equal to this location.
: (untyped other) -> bool