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

7 lines
192 B
Elixir
Raw Normal View History

2020-05-15 15:13:31 +00:00
defmodule RDF.Utils.Guards do
defguard is_ordinary_atom(term)
2020-06-29 08:37:42 +00:00
when is_atom(term) and term not in [nil, true, false]
2020-05-15 15:13:31 +00:00
defguard maybe_module(term) when is_ordinary_atom(term)
end