Class: Prism::Relocation::CharacterOffsetsField
- Inherits:
-
Object
- Object
- Prism::Relocation::CharacterOffsetsField
- Defined in:
- lib/prism/relocation.rb
Overview
A field representing the start and end character offsets.
Instance Method Summary collapse
-
#fields(value) ⇒ Object
Fetches the start and end character offset of a value.
Instance Method Details
#fields(value) ⇒ Object
Fetches the start and end character offset of a value.
219 220 221 222 223 224 |
# File 'lib/prism/relocation.rb', line 219 def fields(value) { start_character_offset: value.start_character_offset, end_character_offset: value.end_character_offset } end |