Class: Martin::DSL::Command
Instance Attribute Summary collapse
-
#regexp ⇒ Object
Returns the value of attribute regexp.
Attributes inherited from Method
Instance Method Summary collapse
-
#initialize(regexp, block) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(regexp, block) ⇒ Command
Returns a new instance of Command.
23 24 25 26 27 |
# File 'lib/martin/dsl.rb', line 23 def initialize(regexp, block) super(block) regexp.should_be_a(Regexp) @regexp = regexp end |
Instance Attribute Details
#regexp ⇒ Object
Returns the value of attribute regexp.
22 23 24 |
# File 'lib/martin/dsl.rb', line 22 def regexp @regexp end |