Class: Escort::Setup::Dsl::Action
- Inherits:
-
Object
- Object
- Escort::Setup::Dsl::Action
- Defined in:
- lib/escort/setup/dsl/action.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command_name = :global) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(command_name = :global) ⇒ Action
Returns a new instance of Action.
11 12 13 |
# File 'lib/escort/setup/dsl/action.rb', line 11 def initialize(command_name = :global) @command_name = command_name end |
Class Method Details
.action(command_name, instance, &block) ⇒ Object
6 7 8 |
# File 'lib/escort/setup/dsl/action.rb', line 6 def action(command_name, instance, &block) instance.instance_variable_set(:"@block", block) end |