class FoodIngredientParser::Strict::Grammar::NestedIngredientNode

Ingredient with containing ingredients.

Public Instance Methods

to_h() click to toggle source
# File lib/food_ingredient_parser/strict/nodes.rb, line 57
def to_h
  super.merge({ contains: to_a_deep(contains, IngredientNode).map(&:to_h) })
end