class Atomy::Grammar::AST::Number
Public Instance Methods
==(other)
click to toggle source
Calls superclass method
# File lib/atomy/node/equality.rb, line 14 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 32 def construct(gen) push_node(gen, :Number) gen.push_int(@value) gen.send(:new, 1) end
each_attribute() { |:value, value| ... }
click to toggle source
# File lib/atomy/node/meta.rb, line 63 def each_attribute yield :value, @value end
to_s()
click to toggle source
# File lib/atomy/node/pretty.rb, line 11 def to_s @value.to_s end