Class: MTP::Properties::Forms::ByteArray
- Defined in:
- lib/mtp/properties.rb
Instance Attribute Summary collapse
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
Instance Method Summary collapse
-
#initialize(form, dts) ⇒ ByteArray
constructor
A new instance of ByteArray.
Methods inherited from None
Constructor Details
#initialize(form, dts) ⇒ ByteArray
Returns a new instance of ByteArray.
206 207 208 |
# File 'lib/mtp/properties.rb', line 206 def initialize(form, dts) @max_length = form.unpack("S") end |
Instance Attribute Details
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length.
205 206 207 |
# File 'lib/mtp/properties.rb', line 205 def max_length @max_length end |