summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 11:13:47 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-11 11:13:47 +0000
commit5f88f72e1d67bb6e94a5b09acfda5e548ee339c2 (patch)
treef93632d377389cbb0c5a18a97573abb957c77a6b /doc
parenta3421d94672e6a70ed7850f0a72bae8145abbc95 (diff)
Elaborate with Range#include?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-rw-r--r--doc/NEWS5
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/NEWS b/doc/NEWS
index 92a499ec6c..5966d70ac3 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