Module: FoodFishParser::Strict::Grammar::RootNode

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

Overview

Root object, contains everything else.

Instance Method Summary collapse

Methods included from SyntaxNodeAdditions

#to_a_deep

Instance Method Details

#to_aObject



21
22
23
# File 'lib/food_fish_parser/strict/nodes.rb', line 21

def to_a
  to_a_deep(self, FishNode).map(&:to_h)
end