Class: Atelier::Action
- Inherits:
-
Object
- Object
- Atelier::Action
- Includes:
- ActionDSL
- Defined in:
- lib/atelier/action.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#proc ⇒ Object
readonly
Returns the value of attribute proc.
Instance Method Summary collapse
-
#initialize(name, &init_block) ⇒ Action
constructor
A new instance of Action.
Methods included from ActionDSL
Constructor Details
#initialize(name, &init_block) ⇒ Action
Returns a new instance of Action.
11 12 13 14 15 |
# File 'lib/atelier/action.rb', line 11 def initialize(name, &init_block) @name = name @proc = Proc.new {} instance_eval &init_block end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/atelier/action.rb', line 9 def name @name end |
#proc ⇒ Object (readonly)
Returns the value of attribute proc.
9 10 11 |
# File 'lib/atelier/action.rb', line 9 def proc @proc end |