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.



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

def initialize(parent)
  @parent = parent
end

Instance Method Details

#expand_string(ruby) ⇒ Object



61
62
63
# File 'lib/rvm/environment/tools.rb', line 61

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

#identifierObject

Returns the current envs expanded identifier



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

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



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

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

#strings(*rubies) ⇒ Object



57
58
59
# File 'lib/rvm/environment/tools.rb', line 57

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