Class: Prism::Relocation::OffsetsField

Inherits:
Object
  • Object
show all
Defined in:
lib/prism/relocation.rb

Overview

A field representing the start and end byte offsets.

Instance Method Summary collapse

Instance Method Details

#fields(value) ⇒ Object

Fetches the start and end byte offset of a value.



211
212
213
# File 'lib/prism/relocation.rb', line 211

def fields(value)
  { start_offset: value.start_offset, end_offset: value.end_offset }
end