Class: Opencdd::Cddal::AST::Condition
- Inherits:
-
Struct
- Object
- Struct
- Opencdd::Cddal::AST::Condition
- Defined in:
- lib/opencdd/cddal/ast.rb
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
144 145 146 |
# File 'lib/opencdd/cddal/ast.rb', line 144 def left @left end |
#operator ⇒ Object
Returns the value of attribute operator
144 145 146 |
# File 'lib/opencdd/cddal/ast.rb', line 144 def operator @operator end |
#right ⇒ Object
Returns the value of attribute right
144 145 146 |
# File 'lib/opencdd/cddal/ast.rb', line 144 def right @right end |
Instance Method Details
#to_cddal ⇒ Object
145 146 147 |
# File 'lib/opencdd/cddal/ast.rb', line 145 def to_cddal "#{left} #{operator} #{right.to_cddal}" end |