rdf-ex/lib/rdf/utils/guards.ex
2020-05-15 17:13:31 +02:00

6 lines
187 B
Elixir

defmodule RDF.Utils.Guards do
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