class Atomy::Grammar::AST::Compose

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 93
def ==(other)
  super || other.is_a?(self.class) && \
    @left == other.left && \
    @right == other.right
end
construct(gen) click to toggle source
# File lib/atomy/node/constructable.rb, line 142
def construct(gen)
  push_node(gen, :Compose)
  @left.construct(gen)
  @right.construct(gen)
  gen.send(:new, 2)
end
each_child() { |:left, left| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 180
def each_child
  yield :left, @left
  yield :right, @right
end
through() { |left| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 185
def through
  self.class.new(yield(@left), yield(@right))
end
to_s() click to toggle source
# File lib/atomy/node/pretty.rb, line 92
def to_s
  "(#@left #@right)"
end