Method: Thor::Base::ClassMethods#commands

Defined in:
lib/thor/base/class_methods.rb

#commandsHashWithIndifferentAccess<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.

Returns:



216
217
218
# File 'lib/thor/base/class_methods.rb', line 216

def commands
  @commands ||= HashWithIndifferentAccess.new
end