Class: Mathtype::MatrixLineByte

Inherits:
BinData::Primitive
  • Object
show all
Defined in:
lib/mathtype-0.0.7.5/lib/records/bintypes.rb

Instance Method Summary collapse

Instance Method Details

#getObject



28
29
30
31
32
33
34
35
# File 'lib/mathtype-0.0.7.5/lib/records/bintypes.rb', line 28

def get
  [
    (self._byte & 0x03),
    (self._byte & 0x0C) >> 2,
    (self._byte & 0x30) >> 4,
    (self._byte & 0xC0) >> 6
  ]
end