Module: BOAST::TopLevelExpressions
- Included in:
- BOAST
- Defined in:
- lib/BOAST/Language/Arithmetic.rb
Instance Method Summary collapse
-
#And(a, b) ⇒ Expression
Creates an Expression using the boolean And Operator.
- #Max(a, b) ⇒ Object
- #Min(a, b) ⇒ Object
-
#Or(a, b) ⇒ Expression
Creates an Expression using the boolean Or Operator.
-
#Return(value) ⇒ Expression
Creates a return Expression.
Instance Method Details
#And(a, b) ⇒ Expression
Creates an Expression using the boolean And Operator
16 17 18 |
# File 'lib/BOAST/Language/Arithmetic.rb', line 16 def And(a, b) return Expression::new(And, a, b) end |
#Max(a, b) ⇒ Object
28 29 30 |
# File 'lib/BOAST/Language/Arithmetic.rb', line 28 def Max(a, b) return Expression::new(Max, a, b) end |
#Min(a, b) ⇒ Object
32 33 34 |
# File 'lib/BOAST/Language/Arithmetic.rb', line 32 def Min(a, b) return Expression::new(Min, a, b) end |
#Or(a, b) ⇒ Expression
Creates an Expression using the boolean Or Operator
24 25 26 |
# File 'lib/BOAST/Language/Arithmetic.rb', line 24 def Or(a, b) return Expression::new(Or, a, b) end |
#Return(value) ⇒ Expression
Creates a return Expression
8 9 10 |
# File 'lib/BOAST/Language/Arithmetic.rb', line 8 def Return(value) return Expression::new("return",nil, value ? value : "" ) end |