Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 18 lines (13 sloc) 0.481 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
-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]}).
Something went wrong with that request. Please try again.