Module: FoodFishParser::Strict::Grammar::CatchAreaNode

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



54
55
56
57
58
59
# File 'lib/food_fish_parser/strict/nodes.rb', line 54

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