Class: Mongify::Mongoid::CLI::Command::Help
- Inherits:
-
Object
- Object
- Mongify::Mongoid::CLI::Command::Help
- Defined in:
- lib/mongify/mongoid/cli/command/help.rb
Overview
A command to display usage information for this application.
Instance Method Summary collapse
-
#execute(view) ⇒ Object
Executes the help command.
-
#initialize(parser) ⇒ Help
constructor
A new instance of Help.
Constructor Details
#initialize(parser) ⇒ Help
Returns a new instance of Help.
10 11 12 |
# File 'lib/mongify/mongoid/cli/command/help.rb', line 10 def initialize(parser) @parser = parser end |
Instance Method Details
#execute(view) ⇒ Object
Executes the help command
14 15 16 17 |
# File 'lib/mongify/mongoid/cli/command/help.rb', line 14 def execute(view) view.output(@parser.to_s) view.report_success end |