Class: Fabulator::Expr::LteExpr
- Inherits:
-
BoolBinExpr
- Object
- BinExpr
- BoolBinExpr
- Fabulator::Expr::LteExpr
- Defined in:
- lib/fabulator/expr/bin_expr.rb
Instance Method Summary collapse
Methods inherited from BoolBinExpr
Methods inherited from BinExpr
#expr_type, #initialize, #result_type, #run
Constructor Details
This class inherits a constructor from Fabulator::Expr::BinExpr
Instance Method Details
#calculate(a, b) ⇒ Object
95 96 97 98 |
# File 'lib/fabulator/expr/bin_expr.rb', line 95 def calculate(a,b) return nil if a.nil? || b.nil? a <= b end |
#op ⇒ Object
91 92 93 |
# File 'lib/fabulator/expr/bin_expr.rb', line 91 def op :lte end |