rdf-ex/lib/rdf/utils/guards.ex

7 lines
187 B
Elixir
Raw Normal View History

2020-05-15 15:13:31 +00:00
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