class School::ProcPattern
- School::ProcPattern
- School::Pattern
- School::BasePattern
- Reference
- Object
Overview
A pattern that wraps a proc.
Defined in:
school/rule/pattern.crConstructors
Instance Method Summary
-
#match(bindings : Bindings, trace : TraceNode | Nil = nil, &block : Bindings -> Nil) : Nil
Indicates whether or not any facts match the pattern.
-
#vars : Enumerable(String)
Returns the variables in 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
Constructor Detail
Instance Method Detail
Indicates whether or not any facts match the pattern.
Yields once for each match.