CooklangParser.Ingredient (cooklang_parser v0.4.2)

Copy Markdown View Source

An ingredient, written as @name{quantity%unit}(preparation).

:reference is the path of a referenced recipe, as in @./sauces/pesto{}.

Summary

Types

t()

@type t() :: %CooklangParser.Ingredient{
  name: String.t(),
  optional: boolean(),
  preparation: String.t() | nil,
  quantity: CooklangParser.quantity() | nil,
  reference: String.t() | nil,
  unit: String.t() | nil
}