Sphynx.Clash (Sphynx v0.1.0) View Source

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Returns identity of clash by his pid

Link to this section Types

Specs

t() :: %Sphynx.Clash{
  current_riddle: Sphynx.Riddle.t(),
  identity: Atom.t(),
  parent: Atom.t()
}

Link to this section Functions

Link to this function

check_answer(pname, answer)

View Source

Specs

check_answer(Atom.t(), Any.t()) :: Any.t()

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

identity(pid()) :: Atom.t()

Returns identity of clash by his pid

Specs

lookup(Atom.t()) :: t()
Link to this function

make_riddle(pname, user_riddle)

View Source

Specs

make_riddle(Atom.t(), Any.t()) :: :ok

Specs

process(Atom.t(), Any.t()) :: Any.t()