Re: Class Methods

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.

Edwin, Helge - thank you.

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

Have a great day.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs