Project

General

Profile

Feature #9515

IO.each (and perhaps CSV.each)

Added by sawa (Tsuyoshi Sawada) almost 6 years ago. Updated almost 6 years ago.

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

Description

There are pairs IO.read and IO#read, and IO.write and IO#write, but when it comes to IO#each and IO#each_line, their counterpart in the class method is IO.foreach. This is hard to remember. I request IO.each to be an alias for IO.foreach. Perhaps the same thing for CSV.each

History

Updated by sawa (Tsuyoshi Sawada) almost 6 years ago

Also, IO.each_line.

Also available in: Atom PDF