Class: Nobbie::Wx::Command::Executor
- Inherits:
-
Object
- Object
- Nobbie::Wx::Command::Executor
- Defined in:
- lib/nobbie/wx/command/executor.rb
Overview
:nodoc:
Instance Method Summary collapse
- #execute(command) ⇒ Object
-
#initialize(reporter = Reporter.new) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
Instance Method Details
#execute(command) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/nobbie/wx/command/executor.rb', line 14 def execute(command) @reporter.before_executing_command(command) result = command.execute @reporter.after_executing_command(result) result end |