Wait for theme
new
CoffeeShop (context) > CoffeeMachine
CoffeeMachine
Кофемашина, которая готовит кофе
concepts
attrs
fields
∴ state (anything)
Field state
signatures
⨌ make_coffee / 1 (anything) Signature inference is ambiguous, choose stricter type
Head of make_coffee/1
samples
lib/coffee_shop/coffee_machine.ex
defmodule CoffeeShop.CoffeeMachine do
@moduledoc "Кофемашина, которая готовит кофе"
defstruct state: nil
@doc "Head of make_coffee/1"
@spec make_coffee(drink :: any) :: any
def make_coffee(drink)
def make_coffee(drink) do
end
end
defmodule CoffeeShop.CoffeeMachine do
@moduledoc "Кофемашина, которая готовит кофе"
defstruct state: nil
@doc "Head of make_coffee/1"
@spec make_coffee(drink :: any) :: any
def make_coffee(drink)
def make_coffee(drink) do
end
end
test/coffee_shop/coffee_machine_test.exs
defmodule CoffeeShop.CoffeeMachineTest do
use ExUnit.Case, async: true
alias CoffeeShop.CoffeeMachine
describe("make_coffee / 1") do
test "fun make_coffee" do
end
end
end
defmodule CoffeeShop.CoffeeMachineTest do
use ExUnit.Case, async: true
alias CoffeeShop.CoffeeMachine
describe("make_coffee / 1") do
test "fun make_coffee" do
end
end
end