Class: Martin::DSL::Method
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
Instance Method Summary collapse
-
#initialize(block) ⇒ Method
constructor
A new instance of Method.
Constructor Details
#initialize(block) ⇒ Method
Returns a new instance of Method.
14 15 16 17 |
# File 'lib/martin/dsl.rb', line 14 def initialize(block) block.should_be_a(Proc) @block = block end |
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block.
13 14 15 |
# File 'lib/martin/dsl.rb', line 13 def block @block end |