Michael Kohl
6/15/2009 3:55:00 PM
On Mon, Jun 15, 2009 at 5:27 PM, Le Sa<lescoutinhovr@gmail.com> wrote:
> I would like to list ms1 and ms2, but thanks for the help!
>
> class Person
> =A0def mp1() =A0end
> end
>
> class Student < Person
> =A0def ms1() end
> =A0def ms2() end
>
> =A0private :ms2
> end
The closest I have to offer is this:
>> Student.new.methods - Object.instance_methods
=3D> ["ms1", "mp1"]