Squash warnings about missing inits
This commit is contained in:
@@ -8,6 +8,10 @@ defmodule Display do
|
|||||||
GenServer.start_link(__MODULE__, %{clear_screen: true}, name: __MODULE__)
|
GenServer.start_link(__MODULE__, %{clear_screen: true}, name: __MODULE__)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def init(args) do
|
||||||
|
{:ok, args}
|
||||||
|
end
|
||||||
|
|
||||||
def disable_clear do
|
def disable_clear do
|
||||||
GenServer.cast(__MODULE__, :disable_clear)
|
GenServer.cast(__MODULE__, :disable_clear)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ defmodule GenServers do
|
|||||||
|
|
||||||
#####
|
#####
|
||||||
# External API
|
# External API
|
||||||
|
def init(args) do
|
||||||
|
{:ok, args}
|
||||||
|
end
|
||||||
|
|
||||||
def start_link(init_password) do
|
def start_link(init_password) do
|
||||||
# The __MODULE__ macro returns the current module name as an atom
|
# The __MODULE__ macro returns the current module name as an atom
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ defmodule Runner do
|
|||||||
|
|
||||||
def modules_to_run(start_module), do: Enum.drop_while(modules(), &(&1 != start_module))
|
def modules_to_run(start_module), do: Enum.drop_while(modules(), &(&1 != start_module))
|
||||||
|
|
||||||
|
def init(args) do
|
||||||
|
{:ok, args}
|
||||||
|
end
|
||||||
|
|
||||||
def start_link do
|
def start_link do
|
||||||
GenServer.start_link(__MODULE__, [], name: __MODULE__)
|
GenServer.start_link(__MODULE__, [], name: __MODULE__)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user