Class: Yuzu::Command::Help
- Inherits:
-
ConfiglessCommand
- Object
- ConfiglessCommand
- Yuzu::Command::Help
- Defined in:
- lib/yuzu/commands/help.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#initialize(args) ⇒ Help
constructor
A new instance of Help.
Methods inherited from ConfiglessCommand
Constructor Details
#initialize(args) ⇒ Help
Returns a new instance of Help.
4 5 6 |
# File 'lib/yuzu/commands/help.rb', line 4 def initialize(args) @args = args end |
Instance Method Details
#index ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/yuzu/commands/help.rb', line 8 def index if @args.first.nil? puts ArgParser.parse(["--help"]) else command_class, method = Yuzu::Command.parse(@args.first) puts command_class.help(method) end end |