Parent

PreUnifier

Public Class Methods

new() click to toggle source
     # File lib/unified_ruby.rb, line 381
381:   def initialize
382:     super
383:     @unsupported.delete :newline
384:   end

Public Instance Methods

rewrite_call(exp) click to toggle source
     # File lib/unified_ruby.rb, line 386
386:   def rewrite_call exp
387:     exp << s(:arglist) if exp.size < 4
388:     exp.last[0] = :arglist if exp.last.first == :array
389:     exp
390:   end
rewrite_fcall(exp) click to toggle source
     # File lib/unified_ruby.rb, line 392
392:   def rewrite_fcall exp
393:     exp << s(:arglist) if exp.size < 3
394:     if exp[1][0] == :array then
395:       has_splat = exp[1].find { |s| Array === s && s.first == :splat }
396:       exp[1] = s(:arglist, exp[1]) if has_splat
397:       exp[1][0] = :arglist
398:     end
399:     exp
400:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.