Method: Thor::Base::ClassMethods#commands

Defined in:
lib/thor/base.rb

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

[View source]

471
472
473
# File 'lib/thor/base.rb', line 471

def commands
  @commands ||= Hash.new
end