Class: Factbase::Div
Overview
It performs a division operation over the given operands.
Instance Method Summary collapse
-
#evaluate(fact, maps, fb) ⇒ Object
Evaluate term on a fact.
-
#initialize(operands) ⇒ Div
constructor
Constructor.
Methods included from TermShared
Constructor Details
#initialize(operands) ⇒ Div
Constructor.
12 13 14 15 |
# File 'lib/factbase/terms/div.rb', line 12 def initialize(operands) super() @div = Factbase::Arithmetic.new(:/, operands) end |
Instance Method Details
#evaluate(fact, maps, fb) ⇒ Object
Evaluate term on a fact.
22 23 24 |
# File 'lib/factbase/terms/div.rb', line 22 def evaluate(fact, maps, fb) @div.evaluate(fact, maps, fb) end |