Packages

'Mail merging' with Ecto structs. A parser to interpolate MediaWiki-like `[[foo.bar]]` markup using data from Ecto schemas.

Current section

Files

Jump to
mecto lib parseable.ex
Raw

lib/parseable.ex

import ProtocolEx
defprotocol_ex Mecto.Parseable do
def type(module, field)
end
defimpl_ex Ecto.Enum, Ecto.Enum, for: Mecto.Parseable do
def type(Ecto.Enum, %{type: type}), do: type
end