patch_Comparable.txt

Makoto Kishimoto, 02/06/2013 12:12 PM

Download (434 Bytes)

 
1
diff --git a/compar.c b/compar.c
2
index 65def78..7615bde 100644
3
--- a/compar.c
4
+++ b/compar.c
5
@@ -54,6 +54,9 @@ cmp_failed(void)
6
  *  Compares two objects based on the receiver's <code><=></code>
7
  *  method, returning true if it returns 0. Also returns true if
8
  *  _obj_ and _other_ are the same object.
9
+ *
10
+ *  If raising exception in evaluating _obj_ <=> _other_, exception
11
+ *  is rescued and returns false.
12
  */
13
 
14
 static VALUE