Class: RVM::Environment::ToolsWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/rvm/environment/tools.rb

Overview

Ruby like wrapper for tools

Instance Method Summary collapse

Constructor Details

#initialize(parent) ⇒ ToolsWrapper

Returns a new instance of ToolsWrapper.



35
36
37
# File 'lib/rvm/environment/tools.rb', line 35

def initialize(parent)
  @parent = parent
end

Instance Method Details

#expand_string(ruby) ⇒ Object



55
56
57
# File 'lib/rvm/environment/tools.rb', line 55

def expand_string(ruby)
  strings(ruby)[ruby]
end

#identifierObject

Returns the current envs expanded identifier



40
41
42
# File 'lib/rvm/environment/tools.rb', line 40

def identifier
  @parent.tools_identifier
end

#path_identifier(path) ⇒ Object Also known as: identifier_for_path

Returns the identifier for a path, taking into account things like an rvmrc



46
47
48
# File 'lib/rvm/environment/tools.rb', line 46

def path_identifier(path)
  @parent.tools_path_identifier(File.expand_path(path))
end

#strings(*rubies) ⇒ Object



51
52
53
# File 'lib/rvm/environment/tools.rb', line 51

def strings(*rubies)
  @parent.tools_strings(*rubies)
end