Class: Runbook::Statements::RubyCommand
- Inherits:
-
Runbook::Statement
- Object
- Node
- Runbook::Statement
- Runbook::Statements::RubyCommand
- Defined in:
- lib/runbook/statements/ruby_command.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(&block) ⇒ RubyCommand
constructor
A new instance of RubyCommand.
Methods inherited from Runbook::Statement
Methods included from Hooks::Invoker
#_execute_after_hooks, #_execute_around_hooks, #_execute_before_hooks, #invoke_with_hooks
Methods inherited from Node
#dynamic!, #dynamic?, #parent_entity, #visited!, #visited?
Constructor Details
#initialize(&block) ⇒ RubyCommand
Returns a new instance of RubyCommand.
5 6 7 |
# File 'lib/runbook/statements/ruby_command.rb', line 5 def initialize(&block) @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
3 4 5 |
# File 'lib/runbook/statements/ruby_command.rb', line 3 def block @block end |