From 3dd9d02a0e2f46c3485829a3db046a74553bf06e Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Sat, 4 Apr 2015 21:37:07 -0500 Subject: add rebar_state:resources type specs --- src/rebar_state.erl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/rebar_state.erl b/src/rebar_state.erl index d421fdd..68c71a9 100644 --- a/src/rebar_state.erl +++ b/src/rebar_state.erl @@ -298,9 +298,11 @@ namespace(#state_t{namespace=Namespace}) -> namespace(State=#state_t{}, Namespace) -> State#state_t{namespace=Namespace}. +-spec resources(t()) -> rebar_resource:resource(). resources(#state_t{resources=Resources}) -> Resources. +-spec resources(t(), [rebar_resource:resource()]) -> t(). resources(State, NewResources) -> State#state_t{resources=NewResources}. -- cgit v1.1