mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Elaborate with Range#include?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e5f1572583
commit
566e7da773
1 changed files with 4 additions and 1 deletions
5
doc/NEWS
5
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
|
||||
|
|
Loading…
Add table
Reference in a new issue