Project

General

Profile

Feature #9515

`IO.each` and `CSV.each`

Added by sawa (Tsuyoshi Sawada) over 6 years ago. Updated 9 months ago.

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

Description

In IO class, there are pairs of a class method and an instance method with related function:

  • IO.read and IO#read
  • IO.write and IO#write
  • IO.foreach and IO#each (or its alias IO#each_line)

For consistency, please make IO.each an alias for IO.foreach.

The same thing can be said for CSV.each.

#1

Updated by sawa (Tsuyoshi Sawada) 9 months ago

  • Description updated (diff)
  • Subject changed from IO.each (and perhaps CSV.each) to `IO.each` and `CSV.each`

Also available in: Atom PDF