Project

General

Profile

Feature #10175

There’s no reason to prefer Proc.new over Kernel#proc anymore

Added by gogotanaka (Kazuki Tanaka) almost 6 years ago. Updated over 5 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:64591]

Description

We could’t use Kernel#proc if someone wanted to write code in the same way on both Ruby 1.8 and Ruby 1.9.
Now that maintenance of Ruby versions 1.8 end, there’s no reason to prefer Proc.new over Kernel#proc anymore.

https://www.ruby-lang.org/en/news/2014/07/01/eol-for-1-8-7-and-1-9-2/

I have fixed some coding style on the way


Files

UseKernel#proc.PATCH (9.08 KB) UseKernel#proc.PATCH gogotanaka (Kazuki Tanaka), 08/27/2014 07:51 PM

Also available in: Atom PDF