Class: Factbase::Always
- Defined in:
- lib/factbase/terms/always.rb
Overview
If you want to return all the facts you might use ‘(always)’ query.
Instance Method Summary collapse
-
#evaluate(_fact, _maps, _fb) ⇒ Boolean
Evaluate term on a fact.
-
#initialize(operands = []) ⇒ Always
constructor
Constructor.
Methods included from TermShared
Constructor Details
#initialize(operands = []) ⇒ Always
Constructor.
12 13 14 15 16 |
# File 'lib/factbase/terms/always.rb', line 12 def initialize(operands = []) super() @operands = operands @op = :always end |
Instance Method Details
#evaluate(_fact, _maps, _fb) ⇒ Boolean
Evaluate term on a fact.
23 24 25 26 |
# File 'lib/factbase/terms/always.rb', line 23 def evaluate(_fact, _maps, _fb) assert_args(0) true end |