From: Yusuke ENDOH Date: 2010-04-28T22:52:43+09:00 Subject: [ruby-core:29847] Re: [Bug #2496] Delegate: #methods and #public_methods should return delegated methods too Hi, 2010/4/28 Marc-Andre Lafortune : > Hi, > > On Wed, Apr 28, 2010 at 8:49 AM, Yusuke Endoh wrote: >> The patch is slightly wrong; methods should call __getobj__.methods? > > The reason I've proposed `public_methods` is that delegates do not > forward private methods. I feel it would be best if the following is > true for any object, including delegates: > > � �obj.methods.all?{|m| obj.respond_to?(m, true)} Ah, yes, I remember. Thanks. -- Yusuke Endoh