# Ruby respond_to? function

respond_to? takes a second pramater. If the second parameter is true then public and private methods are also searched. Otherwise only the public methods are searched.

Discovered this while reading the Dev.to's codebase.

Documentation

Last Modified: 1/5/2021, 2:07:29 PM