Arke.System.Group (Arke v0.6.2)

Copy Markdown View Source

Summary

Functions

Macro to create an arke struct with the given parameters. Usable only via code and not iex.

Macro used to define parameter in an arke. See example above arke/2

Functions

group(opts \\ [], list)

(macro)
@spec group(args :: list(), Macro.t()) :: %{}

Macro to create an arke struct with the given parameters. Usable only via code and not iex.

Example

group do
  parameter :custom_parameter
  parameter :custom_parameter2
  parameter :custom_parameter3
  parameter :custom_parameter4
end

Return

%Arke.Core.Unit{}

parameter(id, type, opts \\ [])

(macro)
@spec parameter(id :: atom(), type :: atom(), opts :: list()) :: Macro.t()

Macro used to define parameter in an arke. See example above arke/2