Module: FoodFishParser::Strict::Grammar::FishNode
- 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
28 29 30 31 32 33 34 35 36 |
# File 'lib/food_fish_parser/strict/nodes.rb', line 28 def to_h { names: to_a_deep(self, FishNameNode).map(&:to_h), catch_areas: to_a_deep(self, CatchAreaNode).map(&:to_h), catch_methods: to_a_deep(self, CatchMethodNode).map(&:to_h), aquaculture_areas: to_a_deep(self, AquacAreaNode).map(&:to_h), aquaculture_methods: to_a_deep(self, AquacMethodNode).map(&:to_h), } end |