123456789_123456789_123456789_123456789_123456789_

Class: Prism::Relocation::LinesField

Relationships & Source Files
Inherits: Object
Defined in: lib/prism/relocation.rb

Overview

A field representing the start and end lines.

Instance Method Summary

Instance Method Details

#fields(value)

Fetches the start and end line of a value.

[ GitHub ]

  
# File 'lib/prism/relocation.rb', line 203

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