class RVM::Environment::ToolsWrapper
Ruby like wrapper for tools
Public Class Methods
new(parent)
click to toggle source
# File lib/rvm/environment/tools.rb, line 41 def initialize(parent) @parent = parent end
Public Instance Methods
expand_string(ruby)
click to toggle source
# File lib/rvm/environment/tools.rb, line 61 def expand_string(ruby) strings(ruby)[ruby] end
identifier()
click to toggle source
Returns the current envs expanded identifier
# File lib/rvm/environment/tools.rb, line 46 def identifier @parent.tools_identifier end
path_identifier(path)
click to toggle source
Returns the identifier for a path, taking into account things like an rvmrc
# File lib/rvm/environment/tools.rb, line 52 def path_identifier(path) @parent.tools_path_identifier(File.expand_path(path)) end
Also aliased as: identifier_for_path
strings(*rubies)
click to toggle source
# File lib/rvm/environment/tools.rb, line 57 def strings(*rubies) @parent.tools_strings(*rubies) end