Packages

A test runner and watcher designed for fast interactive development

Current section

Files

Jump to
yokai lib sample_module.ex
Raw

lib/sample_module.ex

defmodule SampleModule do
@doc """
Sum a and b
## Examples
iex> SampleModule.sum(1, 1)
2
"""
def sum(a, b), do: a + b
@doc """
Subtracts a and b
## Examples
iex> SampleModule.sub(1, 1)
0
"""
def sub(a, b), do: a - b
def hello do
IO.puts("Hello, World!")
end
end