Class: MTP::Properties::Forms::LongString
- 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) ⇒ LongString
constructor
A new instance of LongString.
Methods inherited from None
Constructor Details
#initialize(form, dts) ⇒ LongString
Returns a new instance of LongString.
213 214 215 |
# File 'lib/mtp/properties.rb', line 213 def initialize(form, dts) @max_length = form.unpack("S") end |
Instance Attribute Details
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length.
212 213 214 |
# File 'lib/mtp/properties.rb', line 212 def max_length @max_length end |