Class: Trope::Node

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/trope/node.rb

Overview

The base syntax node.

Instance Method Summary collapse

Instance Method Details

#elements<Trope::Node>

Returns:



11
12
13
# File 'lib/trope/node.rb', line 11

def elements
  elements_with_treetop_nodes.find_all { |node| node.is_a?(Trope::Node) }
end

#elements_with_treetop_nodesObject



8
# File 'lib/trope/node.rb', line 8

alias_method :elements_with_treetop_nodes, :elements