Class: FoodIngredientParser::Strict::Grammar::AmountNode
- Inherits:
-
SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- SyntaxNode
- FoodIngredientParser::Strict::Grammar::AmountNode
- Defined in:
- lib/food_ingredient_parser/strict/nodes.rb
Overview
Amount, specifying an ingredient.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
64 65 66 |
# File 'lib/food_ingredient_parser/strict/nodes.rb', line 64 def to_h { amount: amount.text_value } end |