Class: Prism::Relocation::LinesField

Inherits:
Object
  • Object
show all
Defined in:
lib/prism/relocation.rb,
sig/generated/prism/relocation.rbs

Overview

A field representing the start and end lines.

Instance Method Summary collapse

Instance Method Details

#fields(value) ⇒ entry_values

Fetches the start and end line of a value.

: (_Value value) -> entry_values

Parameters:

Returns:

  • (entry_values)


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

def fields(value)
  { start_line: value.start_line, end_line: value.end_line }
end