class Prism::Relocation::OffsetsField
A field representing the start and end byte offsets.
Public Instance Methods
Source
# File 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.
Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.