class documentation

class RuleTemplateFactory(RuleFactory): (source)

View In Hierarchy

A factory that fills in template variables into rules. Used by `RuleTemplate` internally. :internal:

Method __init__ Undocumented
Method get_rules Subclasses of `RuleFactory` have to override this method and return an iterable of rules.
Instance Variable context Undocumented
Instance Variable rules Undocumented
def __init__(self, rules: t.Iterable[RuleFactory], context: t.Dict[str, t.Any]): (source)

Undocumented

def get_rules(self, map: Map) -> t.Iterator[Rule]: (source)

Subclasses of `RuleFactory` have to override this method and return an iterable of rules.

Undocumented

Undocumented