Permalink
Browse files

Adds Application.Behavior module

  • Loading branch information...
1 parent f6301fc commit d6ab9031b4551df0354bd0068c1394b3d594a822 @yrashk committed Jun 10, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 lib/application.ex
View
12 lib/application.ex
@@ -37,4 +37,16 @@ defmodule Application do
end
end
+end
+
+defmodule Application.Behavior do
+ defmacro __using__(_) do
+ quote do
+ @behavior :application
+
+ def stop(_state), do: :ok
+
+ defoverridable [stop: 1]
+ end
+ end
end

0 comments on commit d6ab903

Please sign in to comment.