123456789_123456789_123456789_123456789_123456789_

Class: Prism::Relocation::OffsetsField

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

Overview

A field representing the start and end byte offsets.

Instance Method Summary

Instance Method Details

#fields(value)

Fetches the start and end byte offset of a value.

[ GitHub ]

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

def fields(value)
  { start_offset: value.start_offset, end_offset: value.end_offset }
end