[前][次][番号順一覧][スレッド一覧]

ruby-changes:9225

From: knu <ko1@a...>
Date: Mon, 15 Dec 2008 23:33:11 +0900 (JST)
Subject: [ruby-changes:9225] Ruby:r20762 (ruby_1_9_1): Update entries regarding Enumerable/Enumerator.

knu	2008-12-15 23:32:57 +0900 (Mon, 15 Dec 2008)

  New Revision: 20762

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20762

  Log:
    Update entries regarding Enumerable/Enumerator.

  Modified files:
    branches/ruby_1_9_1/NEWS

Index: ruby_1_9_1/NEWS
===================================================================
--- ruby_1_9_1/NEWS	(revision 20761)
+++ ruby_1_9_1/NEWS	(revision 20762)
@@ -45,9 +45,12 @@
           o Array#choice was removed (use sample)
           o Array#[m,n] = nil places nil in the array.
     * Enumerable and Enumerator
+          o Enumerable::Enumerator, compatibility alias of Enumerator,
+            is removed.
           o Enumerable#map,collect_all called without a block returns
             an enumerator.
-          o Many interators in builtin and bundled libraries return an enumerator when called without a block.
+          o Even more builtin and bundled libraries have been made to
+            return an enumerator when called without a block.
     * File and Dir operations
           o #to_path in File.path, File.chmod, File.lchmod, File.chown, File.lchown, File.utime, File.unlink... [Ruby2]
           o Dir.[], Dir.glob
@@ -170,8 +173,7 @@
           o Passing blocks to #[]
           o Proc#lambda?
     * Enumerable and Enumerator
-          o Enumerable::Enumerator is now just Enumerator.
-          o Enumerable#each_with_object [experimental]
+          o Enumerable#each_with_object
           o Enumerator#with_object
           o Enumerator.new { ... }
     * Errno::EXXX

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]