ukraine-taxid-ex/lib/ukraine_taxid_ex/base_parser.ex

13 lines
332 B
Elixir
Raw Normal View History

defmodule UkraineTaxidEx.BaseParser do
2024-12-12 06:32:31 +00:00
@type options :: [normalize?: boolean, clean?: boolean]
@callback parse(string :: String.t(), options :: options()) :: {:ok, term} | {:error, atom}
defmacro __using__(_) do
quote do
@behaviour UkraineTaxidEx.BaseParser
alias UkraineTaxidEx.BaseParser
end
end
end