Parent

PreUnifier

Public Class Methods

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

Public Instance Methods

rewrite_call(exp) click to toggle source
# File lib/unified_ruby.rb, line 358
def rewrite_call exp
  exp << s(:arglist) if exp.size < 4
  exp.last[0] = :arglist if exp.last.first == :array
  exp
end
rewrite_fcall(exp) click to toggle source
# File lib/unified_ruby.rb, line 364
def rewrite_fcall exp
  exp << s(:arglist) if exp.size < 3
  if exp[-1][0] == :array then
    has_splat = exp[-1].find { |s| Array === s && s.first == :splat }
    exp[-1] = s(:arglist, exp[-1]) if has_splat
    exp[-1][0] = :arglist
  end
  exp
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.