Class: Yap::Shell::Parser::Nodes::InternalEvalNode
- Inherits:
-
Object
- Object
- Yap::Shell::Parser::Nodes::InternalEvalNode
- Includes:
- Visitor
- Defined in:
- lib/yap/shell/parser/nodes.rb
Instance Attribute Summary collapse
-
#src ⇒ Object
(also: #command)
readonly
Returns the value of attribute src.
Instance Method Summary collapse
- #args ⇒ Object
- #heredoc ⇒ Object
-
#initialize(token) ⇒ InternalEvalNode
constructor
A new instance of InternalEvalNode.
- #internally_evaluate? ⇒ Boolean
- #to_s ⇒ Object
Methods included from Visitor
Constructor Details
#initialize(token) ⇒ InternalEvalNode
Returns a new instance of InternalEvalNode.
184 185 186 |
# File 'lib/yap/shell/parser/nodes.rb', line 184 def initialize(token) @src = token.value end |
Instance Attribute Details
#src ⇒ Object (readonly) Also known as: command
Returns the value of attribute src.
181 182 183 |
# File 'lib/yap/shell/parser/nodes.rb', line 181 def src @src end |
Instance Method Details
#args ⇒ Object
188 189 190 |
# File 'lib/yap/shell/parser/nodes.rb', line 188 def args nil end |
#heredoc ⇒ Object
192 193 194 |
# File 'lib/yap/shell/parser/nodes.rb', line 192 def heredoc nil end |
#internally_evaluate? ⇒ Boolean
196 197 198 |
# File 'lib/yap/shell/parser/nodes.rb', line 196 def internally_evaluate? true end |
#to_s ⇒ Object
200 201 202 |
# File 'lib/yap/shell/parser/nodes.rb', line 200 def to_s "InternalEvalNode(#{@src.inspect})" end |