ExKcal.Recipe (ExKcal v0.0.4)

ExKcal.Recipe splits preparation task into the list of steps.

Link to this section Summary

Types

t()

Type representing recipe.

Link to this section Types

Specs

t() :: %ExKcal.Recipe{steps: [ExKcal.Recipe.Step.t()]}

Type representing recipe.

Link to this section Functions

Link to this function

add_step(recipe, step)

Specs

add_step(t(), ExKcal.Recipe.Step.t()) :: t()

Add ExKcal.Recipe.Step to ExKcal.Recipe.

Link to this function

delete_step(recipe, step_index)

Specs

delete_step(t(), non_neg_integer()) :: t()

Delete instance of ExKcal.Recipe.Step from ExKcal.Recipe by its index.

Specs

new() :: t()

Construct new instance of ExKcal.Recipe struct.