Method: Thor::Base::ClassMethods#all_commands
- Defined in:
- lib/thor/base.rb
permalink #all_commands ⇒ Object Also known as: all_tasks
Returns the commands for this Thor class and all subclasses.
Returns
- Hash
-
An ordered hash with commands names as keys and Thor::Command objects as values.
482 483 484 485 |
# File 'lib/thor/base.rb', line 482 def all_commands @all_commands ||= from_superclass(:all_commands, Hash.new) @all_commands.merge!(commands) end |