class Atomy::Grammar::AST::Sequence
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 8 def ==(other) super || other.is_a?(self.class) && @nodes == other.nodes end
construct(gen)
click to toggle source
# File lib/atomy/node/constructable.rb, line 21 def construct(gen) push_node(gen, :Sequence) @nodes.each do |node| node.construct(gen) end gen.make_array(@nodes.size) gen.send(:new, 1) end
each_child() { |:nodes, nodes| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 53 def each_child yield :nodes, @nodes end
through() { |n| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 57 def through self.class.new(nodes.collect { |n| yield n }) end
to_s()
click to toggle source
# File lib/atomy/node/pretty.rb, line 5 def to_s @nodes.join(", ") end