Class: Opencdd::Cddal::AST::Condition

Inherits:
Struct
  • Object
show all
Defined in:
lib/opencdd/cddal/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



144
145
146
# File 'lib/opencdd/cddal/ast.rb', line 144

def left
  @left
end

#operatorObject

Returns the value of attribute operator

Returns:

  • (Object)

    the current value of operator



144
145
146
# File 'lib/opencdd/cddal/ast.rb', line 144

def operator
  @operator
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



144
145
146
# File 'lib/opencdd/cddal/ast.rb', line 144

def right
  @right
end

Instance Method Details

#to_cddalObject



145
146
147
# File 'lib/opencdd/cddal/ast.rb', line 145

def to_cddal
  "#{left} #{operator} #{right.to_cddal}"
end