Forum: Ruby Re: Class Methods

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7c1727640c0d6f089fce77c6d1403bad?d=identicon&s=25 Helge Elvik (Guest)
on 2006-05-08 15:07
(Received via mailing list)
One solution would be to use ruby-array's "set-like" functionality:

onlyClassBMethods = ClassB.instance_methods - ClassA.instance_methods

Don't know if this is what you're looking for?

Regards,
Helge Elvik
2c80e1b0837eec76d38d4f7fa1c15e87?d=identicon&s=25 Michael Gorsuch (Guest)
on 2006-05-08 15:10
(Received via mailing list)
Edwin, Helge - thank you.

I can't believe I didn't put that together.

Have a great day.
This topic is locked and can not be replied to.