diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 11:09:02 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 11:09:02 +0000 |
commit | 566e7da773c9b374c5919e053c7dd420ec226806 (patch) | |
tree | d7d93a8dc2c53f5d09aef58e7fd2a44aa7c29a4a | |
parent | e5f1572583412271d7cc6cce30f6d792a114d930 (diff) | |
download | ruby-566e7da773c9b374c5919e053c7dd420ec226806.tar.gz |
Elaborate with Range#include?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | doc/NEWS | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |