Class: Factbase::EndsWith
- Defined in:
- lib/factbase/terms/ends_with.rb
Overview
Represents an ‘ends_with’ term in the Factbase. Returns true if any value of the left operand ends with any value of the right.
Instance Method Summary collapse
-
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
-
#initialize(operands) ⇒ EndsWith
constructor
Constructor.
Methods inherited from TermBase
Constructor Details
Instance Method Details
#evaluate(fact, maps, fb) ⇒ Boolean
Evaluate term on a fact.
24 25 26 |
# File 'lib/factbase/terms/ends_with.rb', line 24 def evaluate(fact, maps, fb) @op.evaluate(fact, maps, fb) end |