Skip to content

Commit

Permalink
fix: More documentation fixes before 1.0.0 publish
Browse files Browse the repository at this point in the history
  • Loading branch information
halostatue committed Jan 19, 2025
1 parent a478156 commit c82659f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/kinetic_ecto.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule KineticEcto do
### Examples
```elixir
iex> KineticEcto.empty?(nil)
true
Expand Down Expand Up @@ -62,6 +63,7 @@ defmodule KineticEcto do
iex> KineticEcto.empty?({1})
false
```
"""
def empty?(nil), do: true
def empty?(""), do: true
Expand All @@ -85,6 +87,7 @@ defmodule KineticEcto do
### Examples
```elixir
iex> KineticEcto.present?(nil)
false
Expand Down Expand Up @@ -120,6 +123,7 @@ defmodule KineticEcto do
iex> KineticEcto.present?({1})
true
```
"""
def present?(value), do: !empty?(value)
end
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit c82659f

Please sign in to comment.