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
This commit is contained in:
knu 2008-12-11 11:13:47 +00:00
parent a3421d9467
commit 5f88f72e1d

View file

@ -135,7 +135,10 @@ Compatible
o Numeric#fdiv o Numeric#fdiv
* Range * Range
o Range#cover? 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 o Range#min, Range#max
* Regexp * Regexp
o Regexp#=== matches symbols o Regexp#=== matches symbols