Class: Pleiades::Command::Executor
- Inherits:
-
Object
- Object
- Pleiades::Command::Executor
- Defined in:
- lib/pleiades/core/command/executor.rb
Instance Method Summary collapse
- #execute ⇒ Object (also: #call)
-
#initialize(command, method) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(command, method) ⇒ Executor
Returns a new instance of Executor.
4 5 6 7 |
# File 'lib/pleiades/core/command/executor.rb', line 4 def initialize(command, method) @to = command @method = method end |
Instance Method Details
#execute ⇒ Object Also known as: call
9 10 11 12 |
# File 'lib/pleiades/core/command/executor.rb', line 9 def execute @to.__send__ @method @to end |