Current section
Files
Jump to
Current section
Files
priv/docs/model.md
This module defines a Makina model called `<%= inspect(name) %>`.
# State
<%= if attrs != [] do %>
Defines the attributes:
<% attrs = for attr <- attrs, do: " - `#{attr}`. " %>
<%= Enum.join(attrs, "\n") %>
<% else %>
Empty state.
<% end %>
# Commands
<%= if cmds != [] do %>
Defines the commands:
<% cmds = for cmd <- cmds, do: " - `#{cmd}`. " %>
<%= Enum.join(cmds, "\n") %>
<% else %>
Does not define any command.
<% end %>
# Invariants
<%= if invs != [] do %>
Defines the invariants:
<% invs = for inv <- invs, do: " - `#{inv}`. " %>
<%= Enum.join(invs, "\n") %>
<% else %>
Does not define any invariant.
<% end %>