[DOC] add links to `Object#hash`

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-03-14 01:27:43 +00:00
Родитель f53c291ab2
Коммит fc23374f06
11 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -3796,6 +3796,8 @@ rb_ary_eql(VALUE ary1, VALUE ary2)
*
* Two arrays with the same content will have the same hash code (and will
* compare using #eql?).
*
* See also Object#hash.
*/
static VALUE

Просмотреть файл

@ -6782,6 +6782,8 @@ rb_big_aref(VALUE x, VALUE y)
* big.hash -> fixnum
*
* Compute a hash based on the value of _big_.
*
* See also Object#hash.
*/
static VALUE

2
gc.c
Просмотреть файл

@ -2375,6 +2375,8 @@ id2ref(VALUE obj, VALUE objid)
*
* Any hash value that exceeds the capacity of a Fixnum will be truncated
* before being used.
*
* See also Object#hash.
*/
VALUE

2
hash.c
Просмотреть файл

@ -2010,6 +2010,8 @@ hash_i(VALUE key, VALUE val, VALUE arg)
*
* 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

Просмотреть файл

@ -1107,6 +1107,8 @@ flo_eq(VALUE x, VALUE y)
* float.hash -> integer
*
* Returns a hash code for this float.
*
* See also Object#hash.
*/
static VALUE

4
proc.c
Просмотреть файл

@ -1067,6 +1067,8 @@ rb_hash_proc(st_index_t hash, VALUE prc)
* 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)
* meth.hash -> integer
*
* Returns a hash value corresponding to the method object.
*
* See also Object#hash.
*/
static VALUE

Просмотреть файл

@ -250,6 +250,8 @@ range_eql(VALUE range, VALUE obj)
* 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

4
re.c
Просмотреть файл

@ -2583,6 +2583,8 @@ static st_index_t reg_hash(VALUE re);
* 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)
*
* Produce a hash based on the target string, regexp and matched
* positions of this matchdata.
*
* See also Object#hash.
*/
static VALUE

Просмотреть файл

@ -2338,6 +2338,8 @@ rb_str_hash_cmp(VALUE str1, VALUE str2)
* str.hash -> fixnum
*
* Return a hash based on the string's length, content and encoding.
*
* See also Object#hash.
*/
static VALUE

Просмотреть файл

@ -949,6 +949,8 @@ rb_struct_equal(VALUE s, VALUE s2)
* struct.hash -> fixnum
*
* Returns a hash value based on this struct's contents (see Object#hash).
*
* See also Object#hash.
*/
static VALUE

2
time.c
Просмотреть файл

@ -3405,6 +3405,8 @@ time_utc_p(VALUE time)
* time.hash -> fixnum
*
* Returns a hash code for this Time object.
*
* See also Object#hash.
*/
static VALUE