diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-04-04 21:37:07 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-04-04 21:37:07 -0500 |
commit | 3dd9d02a0e2f46c3485829a3db046a74553bf06e (patch) | |
tree | 8a65e4fb64262eabbf985f56c7540694f3b1ab56 | |
parent | 4e64e3685707e82a5906fee0d482087c80b0ee3b (diff) |
add rebar_state:resources type specs
-rw-r--r-- | src/rebar_state.erl | 2 |
1 files changed, 2 insertions, 0 deletions
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}. |