class Atomy::Grammar::AST::Postfix

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 64
def ==(other)
  super || other.is_a?(self.class) && \
    @operator == other.operator && \
    @node == other.node
end
construct(gen) click to toggle source
# File lib/atomy/node/constructable.rb, line 97
def construct(gen)
  push_node(gen, :Postfix)
  @node.construct(gen)
  gen.push_literal(@operator)
  gen.send(:new, 2)
end
each_attribute() { |:operator, operator| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 131
def each_attribute
  yield :operator, @operator
end
each_child() { |:node, node| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 135
def each_child
  yield :node, @node
end
through() { |node| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 139
def through
  self.class.new(yield(@node), @operator)
end
to_s() click to toggle source
# File lib/atomy/node/pretty.rb, line 60
def to_s
  "#@node#@operator"
end