Module: FoodFishParser::Strict::Grammar::FishNameNode

Includes:
SyntaxNodeAdditions
Defined in:
lib/food_fish_parser/strict/nodes.rb

Instance Method Summary collapse

Methods included from SyntaxNodeAdditions

#to_a_deep

Instance Method Details

#to_hObject



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