From 44aa9fe4184342e323f7cc343950db7f753fe45a Mon Sep 17 00:00:00 2001 From: knu Date: Thu, 11 Dec 2008 11:13:47 +0000 Subject: 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 --- doc/NEWS | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/NEWS b/doc/NEWS index 92a499ec6..5966d70ac 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 -- cgit