Class: Prism::Relocation::CharacterColumnsField

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

Overview

A field representing the start and end character columns.

Instance Method Summary collapse

Instance Method Details

#fields(value) ⇒ Object

Fetches the start and end character column of a value.



271
272
273
274
275
276
# File 'lib/prism/relocation.rb', line 271

def fields(value)
  {
    start_character_column: value.start_character_column,
    end_character_column: value.end_character_column
  }
end