View Source Luminous.Attributes (luminous v2.6.1)
Attributes map variable values (user-defined) to attribute keyword lists.
They are created by parsing and validating a NimbleOptions
schema (see parse/2
).
Link to this section Summary
Functions
Parse the supplied keyword list using the specified schema (performs validations as well)
Parse the supplied keyword list using the specified schema (performs validations as well). Raises on error.
Link to this section Types
@type t() :: map()
Link to this section Functions
@spec parse( keyword(), Luminous.Attributes.Schema.t() ) :: {:ok, t()} | {:error, binary()}
Parse the supplied keyword list using the specified schema (performs validations as well)
@spec parse!( keyword(), Luminous.Attributes.Schema.t() ) :: map()
Parse the supplied keyword list using the specified schema (performs validations as well). Raises on error.