class Atomy::Grammar::AST::Literal

Public Instance Methods

==(other) click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 20
def ==(other)
  super || other.is_a?(self.class) && @value == other.value
end
construct(gen) click to toggle source
# File lib/atomy/node/constructable.rb, line 40
def construct(gen)
  push_node(gen, :Literal)
  gen.push_literal(@value)
  gen.send(:new, 1)
end
each_attribute() { |:value, value| ... } click to toggle source
# File lib/atomy/node/meta.rb, line 69
def each_attribute
  yield :value, @value
end
to_s() click to toggle source
# File lib/atomy/node/pretty.rb, line 17
def to_s
  @value.to_s
end