class School::Pattern::Any
- School::Pattern::Any
- School::BasePattern
- Reference
- Object
Overview
A special pattern that indicates a condition that is satisfied if and only if at least one fact matches the wrapped pattern.
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.
-
#to_s(io : IO)
Appends a short
String
representation of this object. -
#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.