diff --git a/lib/kinetic_ecto.ex b/lib/kinetic_ecto.ex index e71940e..0e1aa34 100644 --- a/lib/kinetic_ecto.ex +++ b/lib/kinetic_ecto.ex @@ -27,6 +27,7 @@ defmodule KineticEcto do ### Examples + ```elixir iex> KineticEcto.empty?(nil) true @@ -62,6 +63,7 @@ defmodule KineticEcto do iex> KineticEcto.empty?({1}) false + ``` """ def empty?(nil), do: true def empty?(""), do: true @@ -85,6 +87,7 @@ defmodule KineticEcto do ### Examples + ```elixir iex> KineticEcto.present?(nil) false @@ -120,6 +123,7 @@ defmodule KineticEcto do iex> KineticEcto.present?({1}) true + ``` """ def present?(value), do: !empty?(value) end diff --git a/mix.exs b/mix.exs index d1a461a..0397c57 100644 --- a/mix.exs +++ b/mix.exs @@ -59,7 +59,7 @@ defmodule KineticEctoExtensions.MixProject do defp docs do [ - main: "KineticEcto", + main: "README", extras: [ "README.md", "CONTRIBUTING.md": [filename: "CONTRIBUTING.md", title: "Contributing"],