class RedParse::LiteralNode

Public Instance Methods

reducer_ident() click to toggle source
# File lib/redparse/ReduceWithsFor_RedParse_1_8.rb, line 17119
def reducer_ident
  :LiteralNode
end
rip(p) click to toggle source
# File lib/redparse/ripper.rb, line 63
def rip p
  if Symbol===val
    #p.pos huh
    p.on_symbol_literal \
      p.on_symbol \
        p.on_ident(val.to_s)
  elsif Integer===val
    p.on_int(val.to_s)
  else fail
  end
end