class Atomy::Grammar::AST::Constant
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 44 def ==(other) super || other.is_a?(self.class) && @text == other.text end
construct(gen)
click to toggle source
# File lib/atomy/node/constructable.rb, line 72 def construct(gen) push_node(gen, :Constant) gen.push_literal(@text) gen.send(:new, 1) end
each_attribute() { |:text, text| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 105 def each_attribute yield :text, @text end
to_s()
click to toggle source
# File lib/atomy/node/pretty.rb, line 41 def to_s @text.to_s end