class FoodIngredientParser::Strict::Grammar::NestedIngredientNode
Ingredient with containing ingredients.
Public Instance Methods
to_h()
click to toggle source
Calls superclass method
FoodIngredientParser::Strict::Grammar::IngredientNode#to_h
# 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