abstract class School::FactPattern
- School::FactPattern
- School::Pattern
- School::BasePattern
- Reference
- Object
Overview
Patterns that match against the Fact
database.
Direct Known Subclasses
Defined in:
school/rule/pattern.crInstance Method Summary
-
#match(fact : Fact, bindings : Bindings) : Bindings | Nil
Indicates whether or not the fact matches the pattern.
-
#match(bindings : Bindings, trace : TraceNode | Nil = nil, &block : Bindings -> Nil) : Nil
Indicates whether or not any facts match the pattern.
Instance methods inherited from class School::BasePattern
match(bindings : Bindings, trace : TraceNode | Nil = nil, &block : Bindings -> Nil) : Nil
match,
to_s(io : IO)
to_s,
vars : Enumerable(String)
vars
Instance Method Detail
Indicates whether or not the fact matches the pattern.
Indicates whether or not any facts match the pattern.
Yields once for each match.