Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

A useful "methods" with my_methods

#240

When troubleshooting, it's useful to see a list of methods available on an object. Unfortunately, it comes along with a bunch of standard object methods like "inspect".

My fingers get tired typing "@object.methods - Object.methods".

my_methods shows all the methods minus standard object ones.

Reported by Ben Sandofsky · May 23rd, 2008 @ 09:00 AM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jan De Poorter
    Jan De Poorter

    I always use

    @object.class.instance_methods(false)

    Which gives me all public methods of the class without it's super-class methods

    jay

    May 23rd, 2008 @ 09:53 AM

  2. Pratik
    Pratik
    • State changed from new to invalid

    Not in favor of the patch really. You can always do what Jan said.

    Thanks.

    May 29th, 2008 @ 10:48 AM