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



981
982
983
# File 'lib/tree_haver/contracts.rb', line 981

def end_byte
  @end_byte
end

#start_byteObject

Returns the value of attribute start_byte

Returns:

  • (Object)

    the current value of start_byte



981
982
983
# File 'lib/tree_haver/contracts.rb', line 981

def start_byte
  @start_byte
end

Instance Method Details

#to_hObject



982
983
984
985
986
987
# File 'lib/tree_haver/contracts.rb', line 982

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