Method: Bundler::Thor::Base::ClassMethods#all_commands
- Defined in:
- lib/bundler/vendor/thor/lib/thor/base.rb
#all_commands ⇒ Object Also known as: all_tasks
Returns the commands for this Bundler::Thor class and all subclasses.
Returns
- OrderedHash
-
An ordered hash with commands names as keys and Bundler::Thor::Command objects as values.
344 345 346 347 |
# File 'lib/bundler/vendor/thor/lib/thor/base.rb', line 344 def all_commands @all_commands ||= from_superclass(:all_commands, Bundler::Thor::CoreExt::OrderedHash.new) @all_commands.merge(commands) end |