summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-07 12:40:45 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-07 12:40:45 +0000
commit86d05f81fd01c674ace8290e376c026c35b07d2c (patch)
treef143b93ef9a9978593e7aa65e987b370082018a5 /NEWS
parent5e644b81b79622a9ebae2d452509a05832b16d08 (diff)
* array.c (rb_ary_nitems): Backport Array#nitems with a block;
suggested by Bertram Scharpf <lists@bertram-scharpf.de> in [ruby-talk:134083]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 74b552c6f2..82f327030f 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,10 @@ with all sufficient information, see the ChangeLog file.
* builtin classes
+ * Array#nitems now takes a block optionally, which is used to
+ determine if each element should be counted instead of checking if
+ the element is non-nil.
+
* Integer#ord implemented.
* Integer#odd? implemented.
* Integer#even? implemented.