Parent

PreUnifier

Public Class Methods

new() click to toggle source
     # File lib/unified_ruby.rb, line 353
353:   def initialize
354:     super
355:     @unsupported.delete :newline
356:   end

Public Instance Methods

rewrite_call(exp) click to toggle source
     # File lib/unified_ruby.rb, line 358
358:   def rewrite_call exp
359:     exp << s(:arglist) if exp.size < 4
360:     exp.last[0] = :arglist if exp.last.first == :array
361:     exp
362:   end
rewrite_fcall(exp) click to toggle source
     # File lib/unified_ruby.rb, line 364
364:   def rewrite_fcall exp
365:     exp << s(:arglist) if exp.size < 3
366:     if exp[1][0] == :array then
367:       has_splat = exp[1].find { |s| Array === s && s.first == :splat }
368:       exp[1] = s(:arglist, exp[1]) if has_splat
369:       exp[1][0] = :arglist
370:     end
371:     exp
372:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.