Class: AbstractSyntaxTreeKit::Node::AND

Inherits:
AbstractSyntaxTreeKit::Node show all
Defined in:
lib/astkit/node/and.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractSyntaxTreeKit::Node

#body, #children, #condition, #els, #first_column, #first_lineno, #last_column, #last_lineno, #type

Instance Method Summary collapse

Constructor Details

#initialize(node:, left:, right:) ⇒ AND

Returns a new instance of AND.



6
7
8
9
10
# File 'lib/astkit/node/and.rb', line 6

def initialize(node:, left:, right:)
  super(node)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



4
5
6
# File 'lib/astkit/node/and.rb', line 4

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



4
5
6
# File 'lib/astkit/node/and.rb', line 4

def right
  @right
end