class Prism::Relocation::CharacterOffsetsField - Documentation for Ruby 4.0
Description: class Prism::Relocation::CharacterOffsetsField: A field representing the start and end character offsets.
Keywords: ruby,class,Prism::Relocation::CharacterOffsetsField

🔍

No recent searches

# class Prism::Relocation::CharacterOffsetsField

A field representing the start and end character offsets.

### Public Instance Methods

fields (value)
Source

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

Fetches the start and end character offset of a value.