Module: Thor::Util
- Defined in:
- lib/capricorn/extentions/thor_extentions.rb
Overview
:nodoc:
Class Method Summary collapse
-
.constant_from_thor_path(path) ⇒ Object
:nodoc:.
-
.constant_to_thor_path(*args) ⇒ Object
:nodoc:.
- .old_constant_from_thor_path ⇒ Object
- .old_constant_to_thor_path ⇒ Object
Class Method Details
.constant_from_thor_path(path) ⇒ Object
:nodoc:
28 29 30 31 |
# File 'lib/capricorn/extentions/thor_extentions.rb', line 28 def self.constant_from_thor_path(path) # :nodoc: path = "#{Thor.namespace}:"+path if Thor.namespace old_constant_from_thor_path(path) end |
.constant_to_thor_path(*args) ⇒ Object
:nodoc:
22 23 24 25 26 |
# File 'lib/capricorn/extentions/thor_extentions.rb', line 22 def self.constant_to_thor_path(*args) # :nodoc: path = old_constant_to_thor_path(*args) path.sub! /^#{Thor.namespace}:/, '' if Thor.namespace path end |
.old_constant_from_thor_path ⇒ Object
19 |
# File 'lib/capricorn/extentions/thor_extentions.rb', line 19 alias_method :old_constant_from_thor_path, :constant_from_thor_path |
.old_constant_to_thor_path ⇒ Object
18 |
# File 'lib/capricorn/extentions/thor_extentions.rb', line 18 alias_method :old_constant_to_thor_path, :constant_to_thor_path |