Genesis.Aspect behaviour (genesis v0.0.1)

View Source

Summary

Callbacks

add(t, t)

@callback add(Genesis.Object.t(), Enumerable.t()) :: :ok

cast(t)

@callback cast(Enumerable.t()) :: map()

handle_event(atom, object, event)

@callback handle_event(atom(), object :: map(), event :: map()) ::
  {:ok, map(), map()} | {:halt, map()}

init()

@callback init() :: atom()

new(t)

@callback new(Enumerable.t()) :: struct()

Functions

is_enum(term)

(macro)

is_props(term)

(macro)

prop(name, type, opts \\ [])

(macro)