Class: Yap::Shell::Parser::Nodes::ConcatenationNode

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(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

#leftObject (readonly)

Returns the value of attribute left.



250
251
252
# File 'lib/yap/shell/parser/nodes.rb', line 250

def left
  @left
end

#rightObject (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

#inspectObject



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