class Atomy::Grammar::AST::Prefix

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 56
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 88
def construct(gen)
  push_node(gen, :Prefix)
  @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 117
def each_attribute
  yield :operator, @operator
end
each_child() { |:node, node| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 121
def each_child
  yield :node, @node
end
through() { |node| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 125
def through
  self.class.new(yield(@node), @operator)
end
to_s() click to toggle source
# File lib/atomy/node/pretty.rb, line 54
def to_s
  "#@operator#@node"
end