Class: Noir::Command::Help
- Inherits:
-
Base::TerminalCommand
- Object
- Base::Command
- Base::TerminalCommand
- Noir::Command::Help
- Defined in:
- lib/noir/command/help.rb
Class Method Summary collapse
Methods inherited from Base::TerminalCommand
Methods inherited from Base::Command
check_command_not_found, description, sub_commands
Class Method Details
.execute(*args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/noir/command/help.rb', line 6 def execute *args check_command_not_found(*args) puts 'noir : utilities' puts '-----' Noir::Command.constants(true). map{|c| eval('Noir::Command::'+c.to_s)}. select{|c| c.ancestors.include? Noir::Base::Command}. each(&:description) end |