Class: Fabulator::Expr::OrExpr

Inherits:
BoolBinExpr show all
Defined in:
lib/fabulator/expr/bin_expr.rb

Instance Method Summary collapse

Methods inherited from BoolBinExpr

#expr_type, #result_type

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



136
137
138
# File 'lib/fabulator/expr/bin_expr.rb', line 136

def calculate(a,b)
  a || b
end

#opObject



132
133
134
# File 'lib/fabulator/expr/bin_expr.rb', line 132

def op
  :or
end