From: Yuki Sonoda Date: 2008-12-18T00:16:05+09:00 Subject: [ruby-core:20613] [Bug #901] RDoc does not handle multiple method description for a C function properly Bug #901: RDoc does not handle multiple method description for a C function properly http://redmine.ruby-lang.org/issues/show/901 Author: Yuki Sonoda Status: Open, Priority: High Assigned to: Eric Hodel, Category: lib, Target version: 1.9.1 Release Candidate RDoc does not handle method description properly when some method descriptions are assigned onto a C function. For example, documentation for Object#hash is curious. This happened at trunk. ruby_1_8 branch seems to work correctly. % ri-trunk --version ri-trunk 2.2.2 % ri-trunk Object#object_id ----------------------------------------------------- Object#object_id obj.__id__ => fixnum obj.object_id => fixnum From Ruby 1.9.1 ---------------------------------------------------------------------- Returns an integer identifier for obj. The same number will be returned on all calls to id for a given object, and no two active objects will share an id. Object#object_id is a different concept from the :name notation, which returns the symbol id of name. Replaces the deprecated Object#id. % ri-trunk Object#hash ---------------------------------------------------------- Object#hash obj.__id__ => fixnum obj.object_id => fixnum From Ruby 1.9.1 ---------------------------------------------------------------------- Document-method: id Document-method: object_id Returns an integer identifier for obj. The same number will be returned on all calls to id for a given object, and no two active objects will share an id. Object#object_id is a different concept from the :name notation, which returns the symbol id of name. Replaces the deprecated Object#id. /* call-seq: obj.hash => fixnum Generates a Fixnum hash value for this object. This function must have the property that a.eql?(b) implies a.hash == b.hash. The hash value is used by class Hash. Any hash value that exceeds the capacity of a Fixnum will be truncated before being used. / ---------------------------------------- http://redmine.ruby-lang.org