Class: Action
- Inherits:
-
Object
- Object
- Action
- Defined in:
- lib/action.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#step_name ⇒ Object
readonly
Returns the value of attribute step_name.
Instance Method Summary collapse
-
#initialize(name, step_name, options, &block) ⇒ Action
constructor
A new instance of Action.
- #run ⇒ Object
Constructor Details
#initialize(name, step_name, options, &block) ⇒ Action
Returns a new instance of Action.
4 5 6 7 8 9 |
# File 'lib/action.rb', line 4 def initialize(name, step_name, , &block) @name = name @step_name = step_name @options = @block = block end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/action.rb', line 2 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/action.rb', line 2 def @options end |
#step_name ⇒ Object (readonly)
Returns the value of attribute step_name.
2 3 4 |
# File 'lib/action.rb', line 2 def step_name @step_name end |
Instance Method Details
#run ⇒ Object
11 12 13 |
# File 'lib/action.rb', line 11 def run instance_exec(&@block) end |