class School::Rule::Builder
- School::Rule::Builder
- Reference
- Object
Overview
Rule builder.
Used internally to build rules with a DSL.
Defined in:
school/rule/builder.crConstructors
Instance Method Summary
- #action(&action : Action)
- #action(action : Action)
- #any(f : Fact.class, m1, m2)
- #any(m1, f : Fact.class, m2)
- #any(m1, m2, f : Fact.class)
- #any(p : Pattern.class, m1, m2, **options)
- #any(m1, p : Pattern.class, m2, **options)
- #any(m1, m2, p : Pattern.class, **options)
- #any(f : Fact.class, m)
- #any(m, f : Fact.class)
- #any(p : Pattern.class, m, **options)
- #any(m, p : Pattern.class, **options)
- #any(f : Fact.class)
- #any(block : ProcPattern::ProcType)
- #any(p : Pattern.class, **options)
- #any(&block : ProcPattern::ProcType)
- #assert(f : Fact.class, m1, m2)
- #assert(m1, f : Fact.class, m2)
- #assert(m1, m2, f : Fact.class)
- #assert(p : Pattern.class, m1, m2, **options)
- #assert(m1, p : Pattern.class, m2, **options)
- #assert(m1, m2, p : Pattern.class, **options)
- #assert(f : Fact.class, m)
- #assert(m, f : Fact.class)
- #assert(p : Pattern.class, m, **options)
- #assert(m, p : Pattern.class, **options)
- #assert(f : Fact.class)
- #assert(p : Pattern.class, **options)
-
#build
Builds the rule.
- #condition(f : Fact.class, m1, m2)
- #condition(m1, f : Fact.class, m2)
- #condition(m1, m2, f : Fact.class)
- #condition(p : Pattern.class, m1, m2, **options)
- #condition(m1, p : Pattern.class, m2, **options)
- #condition(m1, m2, p : Pattern.class, **options)
- #condition(f : Fact.class, m)
- #condition(m, f : Fact.class)
- #condition(p : Pattern.class, m, **options)
- #condition(m, p : Pattern.class, **options)
- #condition(f : Fact.class)
- #condition(block : ProcPattern::ProcType)
- #condition(p : Pattern.class, **options)
- #condition(&block : ProcPattern::ProcType)
- #none(f : Fact.class, m1, m2)
- #none(m1, f : Fact.class, m2)
- #none(m1, m2, f : Fact.class)
- #none(p : Pattern.class, m1, m2, **options)
- #none(m1, p : Pattern.class, m2, **options)
- #none(m1, m2, p : Pattern.class, **options)
- #none(f : Fact.class, m)
- #none(m, f : Fact.class)
- #none(p : Pattern.class, m, **options)
- #none(m, p : Pattern.class, **options)
- #none(f : Fact.class)
- #none(block : ProcPattern::ProcType)
- #none(p : Pattern.class, **options)
- #none(&block : ProcPattern::ProcType)
-
#not(any)
Returns a not expression.
- #retract(f : Fact.class, m1, m2)
- #retract(m1, f : Fact.class, m2)
- #retract(m1, m2, f : Fact.class)
- #retract(p : Pattern.class, m1, m2, **options)
- #retract(m1, p : Pattern.class, m2, **options)
- #retract(m1, m2, p : Pattern.class, **options)
- #retract(f : Fact.class, m)
- #retract(m, f : Fact.class)
- #retract(p : Pattern.class, m, **options)
- #retract(m, p : Pattern.class, **options)
- #retract(f : Fact.class)
- #retract(p : Pattern.class, **options)
-
#var(name : String)
Returns a new variable.
- #within(*any)
Constructor Detail
Instance Method Detail
def build
#
Builds the rule.
Every invocation returns the same rule (it is built once and memoized).