Method: Thor::Base::ClassMethods#commands
- Defined in:
- lib/thor/base.rb
permalink #commands ⇒ Object Also known as: tasks
Returns the commands for this Thor class.
Returns
- Hash
-
An ordered hash with commands names as keys and Thor::Command objects as values.
471 472 473 |
# File 'lib/thor/base.rb', line 471 def commands @commands ||= Hash.new end |