rdf-ex/lib/rdf/utils/guards.ex
2020-06-29 10:37:42 +02:00

6 lines
192 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