summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 08:57:23 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-14 08:57:23 +0000
commit125d830eb8525151861e932f4a01e76ac5c8b25e (patch)
tree74f570eb217648b78bdf3a83160548d8139652e0 /NEWS
parent39df01c4af5fa7e4246f2a951e4fcc73a3a6aee0 (diff)
* array.c (rb_ary_collect_bang, rb_ary_select): Return an
enumerator if no block is given. * dir.c (dir_each, dir_foreach): Return an enumerator if no block is given. * enum.c (enum_partition, enum_sort_by): Ditto. * gc.c (os_each_obj): Ditto. * hash.c (rb_hash_delete_if, rb_hash_reject_bang, rb_hash_select, rb_hash_each_value, rb_hash_each_key, rb_hash_each_pair, env_each_key, env_each_value, env_each, env_each_pair, env_reject_bang, env_delete_if, env_select): Ditto. * numeric.c (num_step, int_upto, int_downto, int_dotimes): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS57
1 files changed, 52 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index aeb1bcdf22..e92ec21c8d 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,8 @@ with all sufficient information, see the ChangeLog file.
Take a block instead of an argument.
+ * Array#collect!
+ * Array#map!
* Array#each
* Array#each_index
* Array#reverse_each
@@ -41,6 +43,11 @@ with all sufficient information, see the ChangeLog file.
Take an optional argument specifying the number of elements to
remove.
+ * Dir#each
+ * Dir#foreach
+
+ Return an enumerator if no block is given.
+
* Enumerable::Enumerator
New class for various enumeration defined by the enumerator library.
@@ -54,20 +61,60 @@ with all sufficient information, see the ChangeLog file.
New methods for various enumeration defined by the enumerator library.
- * Enumerator#count
+ * Enumerable#count
* Enumerable#find_index
* Enumerable#first
* Enumerable#group_by
New methods.
- * Integer#ord implemented.
- * Integer#odd? implemented.
- * Integer#even? implemented.
- * Integer#pred implemented.
+ * Enumerable#find_all
+ * Enumerable#partition
+ * Enumerable#select
+ * Enumerable#sort_by
+
+ Return an enumerator if no block is given.
+
+ * Hash#delete_if
+ * Hash#each
+ * Hash#each_key
+ * Hash#each_pair
+ * Hash#each_value
+ * Hash#reject!
+ * Hash#select
+ * ENV.delete_if
+ * ENV.each
+ * ENV.each_key
+ * ENV.each_pair
+ * ENV.each_value
+ * ENV.reject!
+ * ENV.select
+
+ Return an enumerator if no block is given.
+
+ * Integer#ord
+ * Integer#odd?
+ * Integer#even?
+ * Integer#pred
+
+ New methods.
+
+ * Integer#downto
+ * Integer#times
+ * Integer#upto
+
+ Return an enumerator if no block is given.
+
+ * Numeric#step
+
+ Return an enumerator if no block is given.
* Object#tap implemented.
+ * ObjectSpace.each_object
+
+ Return an enumerator if no block is given.
+
* Process.exec implemented.
* Range#each