class Ruby::Prism::Relocation::CharacterOffsetsField

A field representing the start and end character offsets.

Public Instance Methods

Fetches the start and end character offset of a value.

: (_Value value) -> entry_values

# File lib/ruby/prism/relocation.rb, line 316
def fields(value)
  {
    start_character_offset: value.start_character_offset,
    end_character_offset: value.end_character_offset
  }
end