Project

General

Profile

Actions

Feature #10175

open

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

Added by gogotanaka (Kazuki Tanaka) about 10 years ago. Updated about 10 years ago.

Status:
Open
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
Actions

Also available in: Atom PDF

Like0
Like0