From: Yukihiro Matsumoto Date: 2008-10-23T17:27:00+09:00 Subject: [ruby-core:19462] Re: Should Method@instance_methods reveal protected methods? Hi, In message "Re: [ruby-core:19458] Should Method@instance_methods reveal protected methods?" on Thu, 23 Oct 2008 12:30:39 +0900, Dave Thomas writes: |The RDoc says it just returns public methods, but | |class C | def pub; end | def pri; end | def pro; end | | public :pub | protected :pro | private :pri |end | |p M.instance_methods(false) #=> [:pub, :pro] | | |I know there's #public_instance_methods, so is the RDoc wrong? Code says list method that is callable from outside (i.e. public + protected). So I guess RDoc should be fixed. matz.