Module: FoodFishParser::Strict::Grammar::FishNameNode
- Includes:
- SyntaxNodeAdditions
- Defined in:
- lib/food_fish_parser/strict/nodes.rb
Instance Method Summary collapse
Methods included from SyntaxNodeAdditions
Instance Method Details
#to_h ⇒ Object
41 42 43 44 45 46 |
# File 'lib/food_fish_parser/strict/nodes.rb', line 41 def to_h { common: to_a_deep(self, FishNameCommonNode).first&.text_value, latin: to_a_deep(self, FishNameLatinNode).first&.text_value } end |