Class: Prism::Relocation::OffsetsField
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/prism/relocation.rb |
Overview
A field representing the start and end byte offsets.
Instance Method Summary
-
#fields(value)
Fetches the start and end byte offset of a value.
Instance Method Details
#fields(value)
Fetches the start and end byte offset of a value.
# File 'lib/prism/relocation.rb', line 211
def fields(value) { start_offset: value.start_offset, end_offset: value.end_offset } end