diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 11:13:47 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-11 11:13:47 +0000 |
commit | 44aa9fe4184342e323f7cc343950db7f753fe45a (patch) | |
tree | f93632d377389cbb0c5a18a97573abb957c77a6b /doc | |
parent | ac35da917c6f4ce6fc3bf146f4eafb6df850d41f (diff) | |
download | ruby-44aa9fe4184342e323f7cc343950db7f753fe45a.tar.gz ruby-44aa9fe4184342e323f7cc343950db7f753fe45a.tar.xz ruby-44aa9fe4184342e323f7cc343950db7f753fe45a.zip |
Elaborate with Range#include?.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'doc')
-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 |