Posted on this week’s Ruby Weekly newsletter was a tip about listing the available public methods on a class.
Object#public_methods returns a list of all public methods including thoses defined by ancesstor classes.
By passing false as an argument to public_methods, we reduce the list of methods to only include the ones on the class, excluding their ancesstors.