Class: MTP::Properties::Forms::RegularExpression

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) ⇒ RegularExpression

Returns a new instance of RegularExpression.



199
200
201
# File 'lib/mtp/properties.rb', line 199

def initialize(form, dts)
  @regexp = Regexp.new(form.unpack("J")) unless form.empty?
end

Instance Attribute Details

#regexpObject (readonly)

Returns the value of attribute regexp.



198
199
200
# File 'lib/mtp/properties.rb', line 198

def regexp
  @regexp
end