Class: FoodIngredientParser::Strict::Grammar::AmountNode

Inherits:
SyntaxNode
  • Object
show all
Defined in:
lib/food_ingredient_parser/strict/nodes.rb

Overview

Amount, specifying an ingredient.

Instance Method Summary collapse

Instance Method Details

#to_hObject



64
65
66
# File 'lib/food_ingredient_parser/strict/nodes.rb', line 64

def to_h
  { amount: amount.text_value }
end