@@ -77,6 +77,14 @@ rb_ary_freeze(ary)
77
77
return rb_obj_freeze (ary );
78
78
}
79
79
80
+ /*
81
+ * call-seq:
82
+ * array.frozen? => true or false
83
+ *
84
+ * Return <code>true</code> if this array is frozen (or temporarily frozen
85
+ * while being sorted).
86
+ */
87
+
80
88
static VALUE
81
89
rb_ary_frozen_p (ary )
82
90
VALUE ary ;
@@ -1417,6 +1425,13 @@ inspect_ary(ary)
1417
1425
return str ;
1418
1426
}
1419
1427
1428
+ /*
1429
+ * call-seq:
1430
+ * array.inspect => string
1431
+ *
1432
+ * Create a printable version of <i>array</i>.
1433
+ */
1434
+
1420
1435
static VALUE
1421
1436
rb_ary_inspect (ary )
1422
1437
VALUE ary ;
@@ -1428,7 +1443,7 @@ rb_ary_inspect(ary)
1428
1443
1429
1444
/*
1430
1445
* call-seq:
1431
- * array.to_a - > array
1446
+ * array.to_a = > array
1432
1447
*
1433
1448
* Returns _self_. If called on a subclass of Array, converts
1434
1449
* the receiver to an Array object.
@@ -1561,7 +1576,6 @@ sort_unlock(ary)
1561
1576
return ary ;
1562
1577
}
1563
1578
1564
- VALUE
1565
1579
/*
1566
1580
* call-seq:
1567
1581
* array.sort! => array
@@ -1578,6 +1592,7 @@ VALUE
1578
1592
* a.sort {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
1579
1593
*/
1580
1594
1595
+ VALUE
1581
1596
rb_ary_sort_bang (ary )
1582
1597
VALUE ary ;
1583
1598
{
@@ -2430,6 +2445,14 @@ rb_ary_equal(ary1, ary2)
2430
2445
return Qtrue ;
2431
2446
}
2432
2447
2448
+ /*
2449
+ * call-seq:
2450
+ * array.eql?(other) => true or false
2451
+ *
2452
+ * Returns <code>true</code> if _array_ and _other_ are the same object,
2453
+ * or are both arrays with the same content.
2454
+ */
2455
+
2433
2456
static VALUE
2434
2457
rb_ary_eql (ary1 , ary2 )
2435
2458
VALUE ary1 , ary2 ;
@@ -2446,6 +2469,14 @@ rb_ary_eql(ary1, ary2)
2446
2469
return Qtrue ;
2447
2470
}
2448
2471
2472
+ /*
2473
+ * call-seq:
2474
+ * array.hash => fixnum
2475
+ *
2476
+ * Compute a hash-code for this array. Two arrays with the same content
2477
+ * will have the same hash code (and will compare using <code>eql?</code>).
2478
+ */
2479
+
2449
2480
static VALUE
2450
2481
rb_ary_hash (ary )
2451
2482
VALUE ary ;
0 commit comments