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

ruby-changes:33251

From: nobu <ko1@a...>
Date: Fri, 14 Mar 2014 10:27:51 +0900 (JST)
Subject: [ruby-changes:33251] nobu:r45329 (trunk): [DOC] add links to `Object#hash`

nobu	2014-03-14 10:27:43 +0900 (Fri, 14 Mar 2014)

  New Revision: 45329

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

  Log:
    [DOC] add links to `Object#hash`
    
    add links to `Object#hash` to each #`hash` methods rdocs.
    [Fixes GH-567]

  Modified files:
    trunk/array.c
    trunk/bignum.c
    trunk/gc.c
    trunk/hash.c
    trunk/numeric.c
    trunk/proc.c
    trunk/range.c
    trunk/re.c
    trunk/string.c
    trunk/struct.c
    trunk/time.c
Index: array.c
===================================================================
--- array.c	(revision 45328)
+++ array.c	(revision 45329)
@@ -3796,6 +3796,8 @@ rb_ary_eql(VALUE ary1, VALUE ary2) https://github.com/ruby/ruby/blob/trunk/array.c#L3796
  *
  *  Two arrays with the same content will have the same hash code (and will
  *  compare using #eql?).
+ *
+ *  See also Object#hash.
  */
 
 static VALUE
Index: time.c
===================================================================
--- time.c	(revision 45328)
+++ time.c	(revision 45329)
@@ -3405,6 +3405,8 @@ time_utc_p(VALUE time) https://github.com/ruby/ruby/blob/trunk/time.c#L3405
  *   time.hash   -> fixnum
  *
  * Returns a hash code for this Time object.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: re.c
===================================================================
--- re.c	(revision 45328)
+++ re.c	(revision 45329)
@@ -2583,6 +2583,8 @@ static st_index_t reg_hash(VALUE re); https://github.com/ruby/ruby/blob/trunk/re.c#L2583
  *   rxp.hash   -> fixnum
  *
  * Produce a hash based on the text and options of this regular expression.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
@@ -2641,6 +2643,8 @@ rb_reg_equal(VALUE re1, VALUE re2) https://github.com/ruby/ruby/blob/trunk/re.c#L2643
  *
  * Produce a hash based on the target string, regexp and matched
  * positions of this matchdata.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: string.c
===================================================================
--- string.c	(revision 45328)
+++ string.c	(revision 45329)
@@ -2338,6 +2338,8 @@ rb_str_hash_cmp(VALUE str1, VALUE str2) https://github.com/ruby/ruby/blob/trunk/string.c#L2338
  *    str.hash   -> fixnum
  *
  * Return a hash based on the string's length, content and encoding.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: range.c
===================================================================
--- range.c	(revision 45328)
+++ range.c	(revision 45329)
@@ -250,6 +250,8 @@ range_eql(VALUE range, VALUE obj) https://github.com/ruby/ruby/blob/trunk/range.c#L250
  * Compute a hash-code for this range. Two ranges with equal
  * begin and end points (using <code>eql?</code>), and the same
  * #exclude_end? value will generate the same hash-code.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: proc.c
===================================================================
--- proc.c	(revision 45328)
+++ proc.c	(revision 45329)
@@ -1067,6 +1067,8 @@ rb_hash_proc(st_index_t hash, VALUE prc) https://github.com/ruby/ruby/blob/trunk/proc.c#L1067
  *   prc.hash   ->  integer
  *
  * Returns a hash value corresponding to proc body.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
@@ -1347,6 +1349,8 @@ method_eq(VALUE method, VALUE other) https://github.com/ruby/ruby/blob/trunk/proc.c#L1349
  *    meth.hash   -> integer
  *
  * Returns a hash value corresponding to the method object.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: struct.c
===================================================================
--- struct.c	(revision 45328)
+++ struct.c	(revision 45329)
@@ -949,6 +949,8 @@ rb_struct_equal(VALUE s, VALUE s2) https://github.com/ruby/ruby/blob/trunk/struct.c#L949
  *   struct.hash   -> fixnum
  *
  * Returns a hash value based on this struct's contents (see Object#hash).
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: gc.c
===================================================================
--- gc.c	(revision 45328)
+++ gc.c	(revision 45329)
@@ -2375,6 +2375,8 @@ id2ref(VALUE obj, VALUE objid) https://github.com/ruby/ruby/blob/trunk/gc.c#L2375
  *
  *  Any hash value that exceeds the capacity of a Fixnum will be truncated
  *  before being used.
+ *
+ *  See also Object#hash.
  */
 
 VALUE
Index: hash.c
===================================================================
--- hash.c	(revision 45328)
+++ hash.c	(revision 45329)
@@ -2010,6 +2010,8 @@ hash_i(VALUE key, VALUE val, VALUE arg) https://github.com/ruby/ruby/blob/trunk/hash.c#L2010
  *
  *  Compute a hash-code for this hash. Two hashes with the same content
  *  will have the same hash code (and will compare using <code>eql?</code>).
+ *
+ *  See also Object#hash.
  */
 
 static VALUE
Index: numeric.c
===================================================================
--- numeric.c	(revision 45328)
+++ numeric.c	(revision 45329)
@@ -1107,6 +1107,8 @@ flo_eq(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L1107
  *   float.hash  ->  integer
  *
  * Returns a hash code for this float.
+ *
+ * See also Object#hash.
  */
 
 static VALUE
Index: bignum.c
===================================================================
--- bignum.c	(revision 45328)
+++ bignum.c	(revision 45329)
@@ -6782,6 +6782,8 @@ rb_big_aref(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6782
  *   big.hash   -> fixnum
  *
  * Compute a hash based on the value of _big_.
+ *
+ * See also Object#hash.
  */
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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