@@ -97,6 +97,15 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
97
97
return Qfalse ;
98
98
}
99
99
100
+ /*
101
+ * Generates a <code>Fixnum</code> hash value for this object. This function must have the
102
+ * property that a.eql?(b) implies a.hash <code>==</code> b.hash. The hash value is used by
103
+ * class <code>Hash</code>. Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
104
+ * truncated before being used.
105
+ *
106
+ * "waffle" #=> "waffle"
107
+ * "waffle".hash #=> -910576647
108
+ */
100
109
VALUE
101
110
rb_obj_hash (VALUE obj )
102
111
{
@@ -1774,10 +1783,10 @@ rb_mod_const_defined(int argc, VALUE *argv, VALUE mod)
1774
1783
return RTEST (recur ) ? rb_const_defined (mod , id ) : rb_const_defined_at (mod , id );
1775
1784
}
1776
1785
1777
- VALUE rb_obj_methods (int argc , VALUE * argv , VALUE obj );
1778
- VALUE rb_obj_protected_methods (int argc , VALUE * argv , VALUE obj );
1779
- VALUE rb_obj_private_methods (int argc , VALUE * argv , VALUE obj );
1780
- VALUE rb_obj_public_methods (int argc , VALUE * argv , VALUE obj );
1786
+ VALUE rb_obj_methods (int argc , VALUE * argv , VALUE obj ); /* in class.c */
1787
+ VALUE rb_obj_protected_methods (int argc , VALUE * argv , VALUE obj ); /* in class.c */
1788
+ VALUE rb_obj_private_methods (int argc , VALUE * argv , VALUE obj ); /* in class.c */
1789
+ VALUE rb_obj_public_methods (int argc , VALUE * argv , VALUE obj ); /* in class.c */
1781
1790
1782
1791
/*
1783
1792
* call-seq:
0 commit comments