abstract class School::BasePattern
- School::BasePattern
- Reference
- Object
Overview
A pattern.
Prefer Pattern
over BasePattern
since classes derived from
Pattern
can be used with special patterns Any
and None
.
Direct Known Subclasses
Defined in:
school/rule/pattern.crInstance 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.