Properly indent Isn module documentation
This commit is contained in:
parent
489a461b34
commit
0f89e38df3
16
lib/isn.ex
16
lib/isn.ex
|
|
@ -62,18 +62,18 @@ for module <- ~w(ISBN ISMN ISSN ISBN13 ISMN13 ISSN13 UPC EAN13) do
|
||||||
@behaviour Ecto.Type
|
@behaviour Ecto.Type
|
||||||
|
|
||||||
@moduledoc """
|
@moduledoc """
|
||||||
Definition for the #{module_name} module.
|
Definition for the Isn.#{module} module.
|
||||||
|
|
||||||
How to use this in an Ecto.Model
|
How to use this in an Ecto.Model
|
||||||
|
|
||||||
defmodule MyApp.Book do
|
defmodule MyApp.Book do
|
||||||
use MyApp.Web, :model
|
use MyApp.Web, :model
|
||||||
|
|
||||||
schema "books" do
|
schema "books" do
|
||||||
field :#{module_name}, Isn.#{ecto_type}
|
field :#{ecto_type}, Isn.#{module}
|
||||||
# other fields
|
# other fields
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def type, do: unquote(ecto_type)
|
def type, do: unquote(ecto_type)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue