mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	[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:
		
							parent
							
								
									f53c291ab2
								
							
						
					
					
						commit
						fc23374f06
					
				
					 11 changed files with 26 additions and 0 deletions
				
			
		
							
								
								
									
										2
									
								
								array.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								array.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								bignum.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								bignum.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
									
										
									
									
									
								
							
							
						
						
									
										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
									
										
									
									
									
								
							
							
						
						
									
										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
									
										
									
									
									
								
							
							
						
						
									
										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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								range.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								range.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
									
										
									
									
									
								
							
							
						
						
									
										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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								string.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								string.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								struct.c
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								struct.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -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
									
										
									
									
									
								
							
							
						
						
									
										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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue