Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Relocation::OffsetsField#fields
fields(value)
lib/prism/relocation.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/relocation.rb, line 211
def fields(value)
{ start_offset: value.start_offset, end_offset: value.end_offset }
end
Fetches the start and end byte offset of a value.
also in
4.0