summaryrefslogtreecommitdiffstats
path: root/doc/NEWS
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 11:09:02 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 11:09:02 +0000
commit84a13de10ac7a51744be2f51710f2bd1118731f1 (patch)
treed7d93a8dc2c53f5d09aef58e7fd2a44aa7c29a4a /doc/NEWS
parent5275ebfd1591d05b6154a2445516f6d8d3561b6c (diff)
downloadruby-84a13de10ac7a51744be2f51710f2bd1118731f1.tar.gz
ruby-84a13de10ac7a51744be2f51710f2bd1118731f1.tar.xz
ruby-84a13de10ac7a51744be2f51710f2bd1118731f1.zip
Elaborate with Range#include?.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc/NEWS')
-rw-r--r--doc/NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/NEWS b/doc/NEWS
index 92a499ec6..5966d70ac 100644
--- a/doc/NEWS
+++ b/doc/NEWS
@@ -135,7 +135,10 @@ Compatible
o Numeric#fdiv
* Range
o Range#cover?
- o Range#include?
+ o Range#include? iterates over elements and compares the
+ given value with each element unless the range is numeric.
+ Use Range#cover? for the old behavior, i.e. comparison
+ with boundary values.
o Range#min, Range#max
* Regexp
o Regexp#=== matches symbols