class ContentRules::NotificationReply
- ContentRules::NotificationReply
- School::Pattern
- School::BasePattern
- Reference
- Object
Defined in:
rules/content_rules.crConstructors
- .new(target : Supported | Nil = nil, options = {} of String => Supported)
- .new(target : Supported | Nil = nil, **options : Supported)
Class Method Summary
- .assert(target : School::DomainTypes | Nil, options : Hash(String, School::DomainTypes))
- .assert(target : School::DomainTypes | Nil, **options : School::DomainTypes)
- .retract(target : School::DomainTypes | Nil, options : Hash(String, School::DomainTypes))
- .retract(target : School::DomainTypes | Nil, **options : School::DomainTypes)
Instance Method Summary
-
#match(bindings : School::Bindings, trace : School::TraceNode | Nil = nil, &block : School::Bindings -> Nil) : Nil
Indicates whether or not any facts match the pattern.
-
#vars : Enumerable(String)
Returns the variables in the pattern.
Constructor Detail
Class Method Detail
def self.assert(target : School::DomainTypes | Nil, **options : School::DomainTypes)
#
def self.retract(target : School::DomainTypes | Nil, **options : School::DomainTypes)
#
Instance Method Detail
def match(bindings : School::Bindings, trace : School::TraceNode | Nil = nil, &block : School::Bindings -> Nil) : Nil
#
Indicates whether or not any facts match the pattern.
Yields once for each match.