class Atomy::Grammar::AST::Apply
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 101 def ==(other) super || other.is_a?(self.class) && \ @node == other.node && \ @arguments == other.arguments end
construct(gen)
click to toggle source
# File lib/atomy/node/constructable.rb, line 151 def construct(gen) push_node(gen, :Apply) @node.construct(gen) @arguments.each do |node| node.construct(gen) end gen.make_array(@arguments.size) gen.send(:new, 2) end
each_child() { |:node, node| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 191 def each_child yield :node, @node yield :arguments, @arguments end
through() { |node| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 196 def through self.class.new(yield(@node), @arguments.collect { |a| yield a }) end
to_s()
click to toggle source
# File lib/atomy/node/pretty.rb, line 98 def to_s "#@node(#{@arguments.join(", ")})" end