summaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-15 14:32:57 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-15 14:32:57 +0000
commit82e08ddf1b01d3b6333f72603cdf65af81e2d766 (patch)
treeac333c2d66fe8a7f650ba0d4ddc9be753f5957f9 /NEWS
parent5a9fcbc23c43a36beb340939b62165e310cf3852 (diff)
downloadruby-82e08ddf1b01d3b6333f72603cdf65af81e2d766.tar.gz
ruby-82e08ddf1b01d3b6333f72603cdf65af81e2d766.tar.xz
ruby-82e08ddf1b01d3b6333f72603cdf65af81e2d766.zip
Update entries regarding Enumerable/Enumerator.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS8
1 files changed, 5 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 35ad23460..adda52643 100644
--- a/NEWS
+++ b/NEWS
@@ -45,9 +45,12 @@ with all sufficient information, see the ChangeLog file.
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 @@ with all sufficient information, see the ChangeLog file.
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