Class: FAM::Syntax::AST::ConditionNode

Inherits:
Node show all
Defined in:
lib/fam/syntax/ast.rb

Direct Known Subclasses

EqualNode, LessNode, MoreNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_s

Constructor Details

#initialize(left, right, valid, invalid) ⇒ ConditionNode

Returns a new instance of ConditionNode.



102
103
104
105
106
107
# File 'lib/fam/syntax/ast.rb', line 102

def initialize left, right, valid, invalid
  @left  = left
  @right = right
  @valid = valid
  @invalid = invalid
end

Instance Attribute Details

#invalidObject

Returns the value of attribute invalid.



101
102
103
# File 'lib/fam/syntax/ast.rb', line 101

def invalid
  @invalid
end

#leftObject

Returns the value of attribute left.



101
102
103
# File 'lib/fam/syntax/ast.rb', line 101

def left
  @left
end

#rightObject

Returns the value of attribute right.



101
102
103
# File 'lib/fam/syntax/ast.rb', line 101

def right
  @right
end

#validObject

Returns the value of attribute valid.



101
102
103
# File 'lib/fam/syntax/ast.rb', line 101

def valid
  @valid
end