ruby-changes:9098
From: knu <ko1@a...>
Date: Thu, 11 Dec 2008 20:13:56 +0900 (JST)
Subject: [ruby-changes:9098] Ruby:r20635 (ruby_1_9_1): Elaborate with Range#include?.
knu 2008-12-11 20:13:47 +0900 (Thu, 11 Dec 2008) New Revision: 20635 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20635 Log: Elaborate with Range#include?. Modified files: branches/ruby_1_9_1/doc/NEWS Index: ruby_1_9_1/doc/NEWS =================================================================== --- ruby_1_9_1/doc/NEWS (revision 20634) +++ ruby_1_9_1/doc/NEWS (revision 20635) @@ -135,7 +135,10 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/