Class: Martin::DSL::Method

Inherits:
Object show all
Defined in:
lib/martin/dsl.rb

Direct Known Subclasses

Command, Configure, Error

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject

Returns the value of attribute block.



13
14
15
# File 'lib/martin/dsl.rb', line 13

def block
  @block
end