diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 14:32:57 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-15 14:32:57 +0000 |
commit | 934586fac8d56de93119bd31267b4ed961b0d654 (patch) | |
tree | ac333c2d66fe8a7f650ba0d4ddc9be753f5957f9 /NEWS | |
parent | 93a2f70c0f69444be467fc198b337bd36a79b92e (diff) |
Update entries regarding Enumerable/Enumerator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20762 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |