Method: Thor::Base::ClassMethods#commands
- Defined in:
- lib/thor/base/class_methods.rb
#commands ⇒ HashWithIndifferentAccess<String, Thor::Command> Also known as: tasks
Returns the commands for this Thor class.
An hash with commands names as keys and Thor::Command objects as values.
216 217 218 |
# File 'lib/thor/base/class_methods.rb', line 216 def commands @commands ||= HashWithIndifferentAccess.new end |