Class: Exerb::Rcdata

Inherits:
Object
  • Object
show all
Defined in:
lib/exerb/rcdata.rb

Overview

#

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Rcdata

Returns a new instance of Rcdata


15
16
17
# File 'lib/exerb/rcdata.rb', line 15

def initialize (data)
  @data = data
end

Instance Attribute Details

#dataObject

Returns the value of attribute data


19
20
21
# File 'lib/exerb/rcdata.rb', line 19

def data
  @data
end

Instance Method Details

#packObject


21
22
23
# File 'lib/exerb/rcdata.rb', line 21

def pack
  return Exerb::Utility.alignment16(@data)
end