Class: Rubsh::Shell::Env

Inherits:
Object
  • Object
show all
Defined in:
lib/rubsh/shell/env.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnv

Returns a new instance of Env.



6
7
8
# File 'lib/rubsh/shell/env.rb', line 6

def initialize
  @path = ::ENV["PATH"].split(::File::PATH_SEPARATOR)
end

Instance Attribute Details

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/rubsh/shell/env.rb', line 4

def path
  @path
end