class ContentRules::Activity

Defined in:

rules/content_rules.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(target : Supported | Nil = nil, options = {} of String => Supported) #

[View source]
def self.new(target : Supported | Nil = nil, **options : Supported) #

[View source]

Class Method Detail

def self.assert(target : School::DomainTypes | Nil, options : Hash(String, School::DomainTypes)) #

[View source]
def self.assert(target : School::DomainTypes | Nil, **options : School::DomainTypes) #

[View source]
def self.retract(target : School::DomainTypes | Nil, options : Hash(String, School::DomainTypes)) #

[View source]
def self.retract(target : School::DomainTypes | Nil, **options : School::DomainTypes) #

[View source]

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.


[View source]
def vars : Enumerable(String) #

Returns the variables in the pattern.


[View source]