Module: ThorEnhance
- Defined in:
- lib/thor_enhance.rb,
lib/thor_enhance/base.rb,
lib/thor_enhance/tree.rb,
lib/thor_enhance/option.rb,
lib/thor_enhance/sample.rb,
lib/thor_enhance/command.rb,
lib/thor_enhance/version.rb,
lib/thor_enhance/autogenerate.rb,
lib/thor_enhance/command_hook.rb,
lib/thor_enhance/configuration.rb,
lib/thor_enhance/command_method.rb,
lib/thor_enhance/autogenerate/option.rb,
lib/thor_enhance/autogenerate/command.rb,
lib/thor_enhance/autogenerate/validate.rb,
lib/thor_enhance/autogenerate/configuration.rb
Defined Under Namespace
Modules: Autogenerate, Base, Command, CommandHook, CommandMethod, Option
Classes: AutoGenerateFailure, BaseError, Configuration, OptionDeprecated, OptionNotAllowed, RequiredOption, Sample, Tree, TreeFailure, ValidationFailed
Constant Summary
collapse
- VERSION =
"0.5.1"
Class Method Summary
collapse
Class Method Details
.basename ⇒ Object
22
23
24
|
# File 'lib/thor_enhance.rb', line 22
def self.basename
configuration.basename
end
|
.configuration ⇒ Object
32
33
34
|
# File 'lib/thor_enhance.rb', line 32
def self.configuration
@configuration ||= ThorEnhance::Configuration.new
end
|
26
27
28
29
30
|
# File 'lib/thor_enhance.rb', line 26
def self.configure
yield configuration if block_given?
configuration.inject_thor!
end
|