Class: RVM::Environment::ToolsWrapper
- Inherits:
-
Object
- Object
- RVM::Environment::ToolsWrapper
- Defined in:
- lib/rvm/environment/tools.rb
Overview
Ruby like wrapper for tools
Instance Method Summary collapse
- #expand_string(ruby) ⇒ Object
-
#identifier ⇒ Object
Returns the current envs expanded identifier.
-
#initialize(parent) ⇒ ToolsWrapper
constructor
A new instance of ToolsWrapper.
-
#path_identifier(path) ⇒ Object
(also: #identifier_for_path)
Returns the identifier for a path, taking into account things like an rvmrc.
- #strings(*rubies) ⇒ Object
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 (ruby) strings(ruby)[ruby] end |
#identifier ⇒ Object
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.(path)) end |
#strings(*rubies) ⇒ Object
57 58 59 |
# File 'lib/rvm/environment/tools.rb', line 57 def strings(*rubies) @parent.tools_strings(*rubies) end |