new
CoffeeShop (root) CoffeeMachine
Кофемашина, которая готовит кофе

concepts

attrs

fields

∴ state (anything)

Field state


signatures

⨌ make_coffee / 1 (signature) Signature inference is ambiguous, choose stricter type

Head of make_coffee/1


samples

implements

protocols

lib/coffee_shop/coffee_machine.ex
defmodule CoffeeShop.CoffeeMachine do @moduledoc "Кофемашина, которая готовит кофе" @type t() :: %__MODULE__{state: any} defstruct state: nil @doc "Head of make_coffee/1" @spec make_coffee(any) :: any def make_coffee(drink) do end end

defmodule CoffeeShop.CoffeeMachine do
  @moduledoc "Кофемашина, которая готовит кофе"
  @type t() :: %__MODULE__{state: any}
  defstruct state: nil
  @doc "Head of make_coffee/1"
  @spec make_coffee(any) :: any
  def make_coffee(drink) do
  end
end


test/coffee_shop/coffee_machine_test.exs
defmodule CoffeeShop.CoffeeMachineTest do use ExUnit.Case, async: true describe("make_coffee / 1") do test "fun make_coffee" do end end end

defmodule CoffeeShop.CoffeeMachineTest do
  use ExUnit.Case, async: true

  describe("make_coffee / 1") do
    test "fun make_coffee" do
    end
  end
end