13 lines
225 B
Text
13 lines
225 B
Text
|
defmodule Test do
|
||
|
defmodule Formatter do
|
||
|
defstruct [:name]
|
||
|
end
|
||
|
|
||
|
def hello(name \\ "chroma") do
|
||
|
case name do
|
||
|
"chroma" -> IO.puts("Hello, CHROMA!!")
|
||
|
other -> raise "no others please"
|
||
|
end
|
||
|
end
|
||
|
end
|