diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 10:39:31 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 10:39:31 +0000 |
| commit | f6895becb91b855b8584124339fd9f2c1d431cdd (patch) | |
| tree | c3ab82cd577d3cfd3691f55c8c5dee3b26f9b4da /NEWS | |
| parent | 8707c67dbfd3eacda3153f46607a72b70aa9420d (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-- | NEWS | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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= |
