Module Thor::Base
In: lib/thor/base.rb
lib/thor/shell.rb

Methods

Classes and Modules

Module Thor::Base::ClassMethods

Attributes

args  [RW] 
options  [RW] 
parent_options  [RW] 
shell  [W] 

Public Class methods

It receives arguments in an Array and two hashes, one for options and other for configuration.

Notice that it does not check if all required arguments were supplied. It should be done by the parser.

Parameters

args<Array[Object]>:An array of objects. The objects are applied to their respective accessors declared with argument.
options<Hash>:An options hash that will be available as self.options. The hash given is converted to a hash with indifferent access, magic predicates (options.skip?) and then frozen.
config<Hash>:Configuration for this Thor class.

Returns the shell used in all Thor classes. If you are in a Unix platform it will use a colored log, otherwise it will use a basic one without color.

Returns the files where the subclasses are kept.

Returns

Hash[path<String> => Class]

Returns the classes that inherits from Thor or Thor::Group.

Returns

Array[Class]

[Validate]