Artistry::Registry
Constructors
Class methods
Lookup a registration by plugin and kind
Lookup a registration by kind name only (returns first match if multiple plugins use same kind)
Get the schema JSON for a code and version
register(kind : String, plugin : String, schema, description : String | Nil = nil, symbol : String | Nil = nil, index : Array(String) = [] of String) : String
Register a new artifact kind. Returns the assigned code. Schema can be any JSON-serializable value. Index is a list of field names to create expression indexes on.
Instance methods
code
Sourcedescription
Sourcekind
Sourceplugin
Sourcesymbol
Sourceversion
Source