Permalink
Browse files

Elixir now defines Supervisor.Behaviour

  • Loading branch information...
yrashk committed Dec 6, 2012
1 parent 71c3024 commit d041f140962c19678bfc672a528144409785810e
Showing with 8 additions and 6 deletions.
  1. +8 −6 lib/supervisor.ex
View
@@ -1,9 +1,11 @@
-defmodule Supervisor.Behaviour do
- defmacro __using__(_) do
- quote do
- @behaviour :supervisor
- end
- end
+unless Code.ensure_loaded?(Supervisor.Behaviour) do
+ defmodule Supervisor.Behaviour do
+ defmacro __using__(_) do
+ quote do
+ @behaviour :supervisor
+ end
+ end
+ end
end
defmodule GenX.Supervisor do

0 comments on commit d041f14

Please sign in to comment.