From: Le Sa Date: 2009-06-16T00:27:49+09:00 Subject: Re: list methods only for specific class I would like to list ms1 and ms2, but thanks for the help! class Person def mp1() end end class Student < Person def ms1() end def ms2() end private :ms2 end Student.public_methods(false).each {|m|puts m} puts "************\n" Student.instance_methods(false).each{|m|puts m} =begin OUTPUT IS: yaml_tag_subclasses? allocate to_yaml superclass new ************ ms1 =end -- Posted via http://www.ruby-forum.com/.