Class: Yap::Shell::Parser::Nodes::ConcatenationNode
- Inherits:
-
Object
- Object
- Yap::Shell::Parser::Nodes::ConcatenationNode
- Includes:
- Visitor
- Defined in:
- lib/yap/shell/parser/nodes.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ ConcatenationNode
constructor
A new instance of ConcatenationNode.
- #inspect ⇒ Object
- #to_s(indent: 0) ⇒ Object
Methods included from Visitor
Constructor Details
#initialize(left, right) ⇒ ConcatenationNode
Returns a new instance of ConcatenationNode.
252 253 254 255 |
# File 'lib/yap/shell/parser/nodes.rb', line 252 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
250 251 252 |
# File 'lib/yap/shell/parser/nodes.rb', line 250 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
250 251 252 |
# File 'lib/yap/shell/parser/nodes.rb', line 250 def right @right end |
Instance Method Details
#inspect ⇒ Object
261 262 263 |
# File 'lib/yap/shell/parser/nodes.rb', line 261 def inspect to_s end |
#to_s(indent: 0) ⇒ Object
257 258 259 |
# File 'lib/yap/shell/parser/nodes.rb', line 257 def to_s(indent:0) "ConcatenationNode(left: #{left.to_s}, right: #{right.to_s})" end |