class Atomy::Grammar::AST::List
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 87 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 131 def construct(gen) push_node(gen, :List) @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 170 def each_child yield :nodes, @nodes end
through() { |n| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 174 def through self.class.new(@nodes.collect { |n| yield n }) end
to_s()
click to toggle source
# File lib/atomy/node/pretty.rb, line 86 def to_s "[#{@nodes.join(", ")}]" end