Class: Rubsh::Shell::Env
- Inherits:
-
Object
- Object
- Rubsh::Shell::Env
- Defined in:
- lib/rubsh/shell/env.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize ⇒ Env
constructor
A new instance of Env.
Constructor Details
#initialize ⇒ Env
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
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/rubsh/shell/env.rb', line 4 def path @path end |