kernel/compiler/nodes.rb
# Args could be an array, splat or argscat
Args could be an array, splat or argscat
Args could be an array splat or argscat
def collapse_args
        @local_rewrite = nil
        @in_block = get(:iter)
        return unless @arguments
        @arguments = @arguments.body
        @block   = @arguments.grep(BlockPass).first
        @arguments.reject! { |o| BlockPass === o } if @block
        @argcount = @arguments.size
      end
def collapse_args @local_rewrite = nil @in_block = get ( :iter ) return unless @arguments @arguments = @arguments . body @block = @arguments . grep ( BlockPass ) . first @arguments . reject! { | o | BlockPass === o } if @block @argcount = @arguments . size end
Args could be an array, splat or argscat
Args could be an array splat or argscat
# HACK handle eval wanting to inject locals