Modular v0.3.2 Modular.Delegate View Source

Defines thin contracts with convention-driven call delegation to internal implementations.

Example

iex> defmodule Invoicing.CreateUser do
iex>   def call(name), do: {:ok, name}
iex> end
iex>
iex> defmodule Invoicing do
iex>   use Modular.Delegate
iex>
iex>   defcall create_user(name)
iex> end
iex>
iex> Invoicing.create_user("Mike")
{:ok, "Mike"}

Link to this section Summary

Link to this section Functions