Module: FoodFishParser::Strict::Grammar::AquacAreaNode

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



74
75
76
77
78
79
# File 'lib/food_fish_parser/strict/nodes.rb', line 74

def to_h
  {
    text: area.text_value,
    fao_codes: to_a_deep(self, FaoAreaCodeNode).map(&:text_value)
  }
end