Add simple LearningSwitch Example
This commit is contained in:
parent
ab21f6e240
commit
f2768496c8
11 changed files with 334 additions and 0 deletions
18
examples/learning_switch/lib/learning_switch.ex
Normal file
18
examples/learning_switch/lib/learning_switch.ex
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
defmodule LearningSwitch do
|
||||
@moduledoc """
|
||||
Documentation for LearningSwitch.
|
||||
"""
|
||||
|
||||
@doc """
|
||||
Hello world.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> LearningSwitch.hello
|
||||
:world
|
||||
|
||||
"""
|
||||
def hello do
|
||||
:world
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue