Module: Thor::Util

Defined in:
lib/capricorn/extentions/thor_extentions.rb

Overview

:nodoc:

Class Method Summary collapse

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_pathObject



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_pathObject



18
# File 'lib/capricorn/extentions/thor_extentions.rb', line 18

alias_method :old_constant_to_thor_path, :constant_to_thor_path