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.
Helge E. (Guest)
on 2006-05-08 17: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 E.
Michael G. (Guest)
on 2006-05-08 17: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.