Module: MTP::Properties::Forms

Defined in:
lib/mtp/properties.rb

Defined Under Namespace

Classes: ByteArray, DateTime, Enumeration, FixedLengthArray, LongString, None, Range, RegularExpression

Constant Summary collapse

FORM_FLAGS =
{ 
  0x00 => None, 0x01 => Range, 0x02 => Enumeration, 0x03 => DateTime,
  0x04 => FixedLengthArray, 0x05 => RegularExpression, 0x06 => ByteArray, 0xFF => String
}

Class Method Summary collapse

Class Method Details

.load(form_flag, form, dts) ⇒ Object



134
135
136
# File 'lib/mtp/properties.rb', line 134

def self.load(form_flag, form, dts)
  FORM_FLAGS[form_flag].new(form, dts)
end