Class: Yap::Shell::Parser::Nodes::EnvWrapperNode

Inherits:
Object
  • Object
show all
Includes:
Visitor
Defined in:
lib/yap/shell/parser/nodes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Visitor

#accept

Constructor Details

#initialize(env, node) ⇒ EnvWrapperNode

Returns a new instance of EnvWrapperNode.



125
126
127
128
# File 'lib/yap/shell/parser/nodes.rb', line 125

def initialize(env, node)
  @env = env
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



123
124
125
# File 'lib/yap/shell/parser/nodes.rb', line 123

def node
  @node
end

Instance Method Details

#envObject



130
131
132
# File 'lib/yap/shell/parser/nodes.rb', line 130

def env
  @env.env
end