Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@mbbx6spp authored
View
15 gen_event.erl → finevt.erl
@@ -1,5 +1,5 @@
%%%' HEADER
-%%% @author {{author_name}} <{{author_name}}>
+%%% @author {{author_name}} <{{author_email}}>
%%% @copyright {{copyright_year}} {{author_name}}
%%% @doc gen_event that {{description}}
%%% @end
@@ -14,13 +14,17 @@
-compile(export_all).
-endif.
%%%.
+%%%' PUBLIC API
+%% TODO: Add public API methods here...
+
+%%%.
%%%' CALLBACKS
%% @private
%% @spec init(Args0) -> {ok, Args1}
%% where
%% Args0 = Args1 = [term()]
%% @doc initializes gen_event
-init(Args) ->
+init([]) ->
{ok, Args}.
%% @private
@@ -46,3 +50,10 @@ handle_event(_Message, State) ->
%% terminates gen_event
terminate(_Args, _State) ->
ok.
+
+%%%.
+%%%' PRIVATE FUNCTIONS
+%% TODO: Add private functions here...
+
+%%%.
+%%% vim: set filetype=erlang tabstop=2 foldmarker=%%%',%%%. foldmethod=marker:
View
7 finevt.template
@@ -0,0 +1,7 @@
+{variables, [
+ {name, "mylogger"},
+ {author_name, "Susan Potter"},
+ {author_email, "me@susanpotter.net"},
+ {copyright_year, 2011}
+]}.
+{template, "finevt.erl", "src/{{name}}.erl"}.
View
4 gen_event.template
@@ -1,4 +0,0 @@
-{variables, [
- {name, "mylogger"},
- {author_name, "Susan Potter <me@susanpotter.net>"}]}.
-{template, "gen_event.erl", "src/{{name}}.erl"}.
Please sign in to comment.
Something went wrong with that request. Please try again.