Class RVM::Environment::EnvWrapper
In: lib/rvm/environment/env.rb
Parent: Object

Simple ruby like wrapper for envs.

Methods

contents   new   path   read   to_file   to_s  

Public Class methods

[Source]

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

Public Instance methods

Contents of the env file.

[Source]

# File lib/rvm/environment/env.rb, line 46
      def contents
        @parent.env_contents
      end

The path of the env file.

[Source]

# File lib/rvm/environment/env.rb, line 53
      def path
        @parent.env_path
      end
read()

Alias for contents

Opens a file on the env file.

[Source]

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

Alias for contents

[Validate]