[ruby-core:60669] [ruby-trunk - Feature #9515] [Open] IO.each (and perhaps CSV.each)

From: sawadatsuyoshi@...
Date: 2014-02-12 16:16:42 UTC
List: ruby-core #60669
Issue #9515 has been reported by Tsuyoshi Sawada.

----------------------------------------
Feature #9515: IO.each (and perhaps CSV.each)
https://bugs.ruby-lang.org/issues/9515

* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
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



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next