Sphynx.Clash (Sphynx v0.1.1) 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

Makes a riddle and set it to an waiting state.

Link to this section Types

Specs

t() :: %Sphynx.Clash{current_riddle: any(), identity: atom(), parent: atom()}

Link to this section Functions

Link to this function

check_answer(pname, answer)

View Source

Specs

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

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

identity(pid()) :: atom()

Returns identity of clash by his pid

Specs

lookup(atom()) :: t()
Link to this function

make_riddle(pname, user_riddle)

View Source

Specs

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

Makes a riddle and set it to an waiting state.

Specs

process(atom(), Any.t()) :: Any.t()
Link to this function

start_link(parent_args, own_args)

View Source

Specs

start_link(Keyword.t(), Keyword.t()) :: pid()