Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 481 Bytes
-module(hcr_config).
-include("hcr.hrl").
-export([incr1/1, incr2/1]).
-export_type([type/0]).
-type type() :: 'test'.
-spec incr1(type() | model()) -> non_neg_integer().
incr1(test) -> 1;
incr1({hcr_model, Type, _}) -> incr1(Type);
incr1(A) -> erlang:throw({hcr, no_config, [?MODULE, incr1, A]}).
-spec incr2(type() | model()) -> non_neg_integer().
incr2(test) -> 2;
incr2({hcr_model, Type, _}) -> incr2(Type);
incr2(A) -> erlang:throw({hcr, no_config, [?MODULE, incr2, A]}).