Class: MTP::Properties::Forms::FixedLengthArray

Inherits:
None
  • Object
show all
Defined in:
lib/mtp/properties.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from None

#pack, #unpack

Constructor Details

#initialize(form, dts) ⇒ FixedLengthArray

Returns a new instance of FixedLengthArray.



192
193
194
# File 'lib/mtp/properties.rb', line 192

def initialize(form, dts)
  @size = form.unpack("S")
end

Instance Attribute Details

#sizeObject (readonly)

Returns the value of attribute size.



191
192
193
# File 'lib/mtp/properties.rb', line 191

def size
  @size
end