Class: TreeHaver::KaitaiByteSpan

Inherits:
Struct
  • Object
show all
Defined in:
lib/tree_haver/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#end_byteObject

Returns the value of attribute end_byte

Returns:

  • (Object)

    the current value of end_byte



417
418
419
# File 'lib/tree_haver/contracts.rb', line 417

def end_byte
  @end_byte
end

#start_byteObject

Returns the value of attribute start_byte

Returns:

  • (Object)

    the current value of start_byte



417
418
419
# File 'lib/tree_haver/contracts.rb', line 417

def start_byte
  @start_byte
end

Instance Method Details

#to_hObject



418
419
420
421
422
423
# File 'lib/tree_haver/contracts.rb', line 418

def to_h
  {
    start_byte: start_byte,
    end_byte: end_byte
  }
end