Class: MTP::Properties::Forms::RegularExpression
- Defined in:
- lib/mtp/properties.rb
Instance Attribute Summary collapse
-
#regexp ⇒ Object
readonly
Returns the value of attribute regexp.
Instance Method Summary collapse
-
#initialize(form, dts) ⇒ RegularExpression
constructor
A new instance of RegularExpression.
Methods inherited from None
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
#regexp ⇒ Object (readonly)
Returns the value of attribute regexp.
198 199 200 |
# File 'lib/mtp/properties.rb', line 198 def regexp @regexp end |