jacopy.research.register_family_rule¶
- jacopy.research.register_family_rule(when, build, why, *, order)¶
Add
build(registry)to an assembled engine when the scanned families satisfywhen: a tag ("wedge"), a set of tags (ALL present) or a predicatefamilies -> bool. Rules are added in ascendingorder(ties: registration order).Idempotent: registering the same rule again (same
whentag / tag set / predicate object, samebuildobject,whyandorder) returns the existing entry instead of adding a second copy. The library’s own rules are always loaded first (ensure_builtin_kinds()).- Parameters:
build (Callable[[Any], Definition])
why (str)
order (float)
- Return type:
FamilyRule