Cite.Policy.Build (Cite v0.1.0)

Copy Markdown View Source

Compiles a policy's declarations to its Cite.Policy.Terms, the data the rounds read, persists them on the module, and reads them back (read/1). A Spark persister: it runs after Cite.Policy.Checks, so every declaration it sees is valid. Internal.

Summary

Functions

Callback implementation for Spark.Dsl.Transformer.after?/1.

Callback implementation for Spark.Dsl.Transformer.before?/1.

The terms of a module that uses Cite.Policy. Raises ArgumentError for any other module.

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.

read(module)

@spec read(module()) :: Cite.Policy.Terms.t()

The terms of a module that uses Cite.Policy. Raises ArgumentError for any other module.