class RedParse::ConstantNode

Public Instance Methods

reducer_ident() click to toggle source
# File lib/redparse/ReduceWithsFor_RedParse_1_8.rb, line 17134
def reducer_ident
  :ConstantNode
end
rip(p) click to toggle source
# File lib/redparse/ripper.rb, line 204
def rip p
  if first
    start=p.on_var_ref \
      p.on_const(first)
    start_i=1
  else
    start=p.on_top_const_ref \
      p.on_const(self[1])
    start_i=2
  end
  (start_i...size).inject(start){|sum,i| 
    p.on_const_path_ref(sum,p.on_const(self[i])) 
  }
end