[前][次][番号順一覧][スレッド一覧]

ruby-changes:9097

From: knu <ko1@a...>
Date: Thu, 11 Dec 2008 20:09:10 +0900 (JST)
Subject: [ruby-changes:9097] Ruby:r20634 (trunk): Elaborate with Range#include?.

knu	2008-12-11 20:09:02 +0900 (Thu, 11 Dec 2008)

  New Revision: 20634

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20634

  Log:
    Elaborate with Range#include?.

  Modified files:
    trunk/doc/NEWS

Index: doc/NEWS
===================================================================
--- doc/NEWS	(revision 20633)
+++ doc/NEWS	(revision 20634)
@@ -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/

[前][次][番号順一覧][スレッド一覧]