summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 10:39:31 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 10:39:31 +0000
commitf6895becb91b855b8584124339fd9f2c1d431cdd (patch)
treec3ab82cd577d3cfd3691f55c8c5dee3b26f9b4da /NEWS
parent8707c67dbfd3eacda3153f46607a72b70aa9420d (diff)
* enumerator.c (enumerator_initialize): Add an ability to generate
an enumerator from a block. [ruby-dev:35903] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@20631 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 64623b3f4d..bac18349ea 100644
--- a/NEWS
+++ b/NEWS
@@ -27,12 +27,14 @@ with all sufficient information, see the ChangeLog file.
New method with which replaces #choice.
* Enumerable#each_with_object
+ * Enumerator#with_object
- New method.
+ New methods.
- * Enumerator#with_object
+ * Enumerator.new { |y| ... }
- New method.
+ Now can generate an enumerator from a block that defines
+ enumeration instead of an enumerable object.
* Hash#default_proc=