class RVM::Environment::EnvWrapper

Simple ruby like wrapper for envs.

Public Class Methods

new(parent) click to toggle source
# File lib/rvm/environment/env.rb, line 41
def initialize(parent)
  @parent = parent
end

Public Instance Methods

contents() click to toggle source

Contents of the env file.

# File lib/rvm/environment/env.rb, line 46
def contents
  @parent.env_contents
end
Also aliased as: read, to_s
path() click to toggle source

The path of the env file.

# File lib/rvm/environment/env.rb, line 53
def path
  @parent.env_path
end
read()
Alias for: contents
to_file() click to toggle source

Opens a file on the env file.

# File lib/rvm/environment/env.rb, line 58
def to_file
  File.open(path)
end
to_s()
Alias for: contents