rdf-ex/lib/rdf/utils/guards.ex
2022-04-02 23:04:10 +02:00

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