Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move gen_event to finevt Rebar template.

All gen_X behaviors now have finX Rebar templates in this repository for
consistency. Each of these templates adhere to Finsignia Erlang/OTP
coding style guidelines. Thus the "fin" prefix.
  • Loading branch information...
commit b87d7b538afd9be6e4527e90dff60b48bbac9eec 1 parent 0f035a3
Susan Potter authored
15 gen_event.erl → finevt.erl
... ... @@ -1,5 +1,5 @@
1 1 %%%' HEADER
2   -%%% @author {{author_name}} <{{author_name}}>
  2 +%%% @author {{author_name}} <{{author_email}}>
3 3 %%% @copyright {{copyright_year}} {{author_name}}
4 4 %%% @doc gen_event that {{description}}
5 5 %%% @end
@@ -14,13 +14,17 @@
14 14 -compile(export_all).
15 15 -endif.
16 16 %%%.
  17 +%%%' PUBLIC API
  18 +%% TODO: Add public API methods here...
  19 +
  20 +%%%.
17 21 %%%' CALLBACKS
18 22 %% @private
19 23 %% @spec init(Args0) -> {ok, Args1}
20 24 %% where
21 25 %% Args0 = Args1 = [term()]
22 26 %% @doc initializes gen_event
23   -init(Args) ->
  27 +init([]) ->
24 28 {ok, Args}.
25 29
26 30 %% @private
@@ -46,3 +50,10 @@ handle_event(_Message, State) ->
46 50 %% terminates gen_event
47 51 terminate(_Args, _State) ->
48 52 ok.
  53 +
  54 +%%%.
  55 +%%%' PRIVATE FUNCTIONS
  56 +%% TODO: Add private functions here...
  57 +
  58 +%%%.
  59 +%%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker:
7 finevt.template
... ... @@ -0,0 +1,7 @@
  1 +{variables, [
  2 + {name, "mylogger"},
  3 + {author_name, "Susan Potter"},
  4 + {author_email, "me@susanpotter.net"},
  5 + {copyright_year, 2011}
  6 +]}.
  7 +{template, "finevt.erl", "src/{{name}}.erl"}.
4 gen_event.template
... ... @@ -1,4 +0,0 @@
1   -{variables, [
2   - {name, "mylogger"},
3   - {author_name, "Susan Potter <me@susanpotter.net>"}]}.
4   -{template, "gen_event.erl", "src/{{name}}.erl"}.

0 comments on commit b87d7b5

Please sign in to comment.
Something went wrong with that request. Please try again.