10 lines
291 B
Elixir
10 lines
291 B
Elixir
defmodule RDF.Utils.Guards do
|
|
@moduledoc !"""
|
|
A collection of guards intended for internal use.
|
|
"""
|
|
|
|
defguard is_ordinary_atom(term)
|
|
when is_atom(term) and term not in [nil, true, false]
|
|
|
|
defguard maybe_module(term) when is_ordinary_atom(term)
|
|
end
|