module BOAST::TopLevelExpressions

Public Instance Methods

And(a, b) click to toggle source

Creates an Expression using the boolean And Operator @param [#to_var] a @param [#to_var] b @return [Expression]

# File lib/BOAST/Language/Arithmetic.rb, line 16
def And(a, b)
  return Expression::new(And, a, b)
end
Max(a, b) click to toggle source
# File lib/BOAST/Language/Arithmetic.rb, line 28
def Max(a, b)
  return Expression::new(Max, a, b)
end
Min(a, b) click to toggle source
# File lib/BOAST/Language/Arithmetic.rb, line 32
def Min(a, b)
  return Expression::new(Min, a, b)
end
Or(a, b) click to toggle source

Creates an Expression using the boolean Or Operator @param [#to_var] a @param [#to_var] b @return [Expression]

# File lib/BOAST/Language/Arithmetic.rb, line 24
def Or(a, b)
  return Expression::new(Or, a, b)
end
Return(value) click to toggle source

Creates a return Expression @param [#to_var] value to return @return [Expression]

# File lib/BOAST/Language/Arithmetic.rb, line 8
def Return(value)
  return Expression::new("return",nil, value ? value : "" )
end