Class: Balboa::CLI::Command::LastCommand
- Inherits:
-
Object
- Object
- Balboa::CLI::Command::LastCommand
- Defined in:
- lib/balboa/cli/command/last_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(interactor) ⇒ LastCommand
constructor
A new instance of LastCommand.
Constructor Details
#initialize(interactor) ⇒ LastCommand
Returns a new instance of LastCommand.
7 8 9 |
# File 'lib/balboa/cli/command/last_command.rb', line 7 def initialize(interactor) @interactor = interactor end |
Instance Method Details
#execute ⇒ Object
11 12 13 |
# File 'lib/balboa/cli/command/last_command.rb', line 11 def execute $stdout.puts(@interactor.last) end |