method

respond_to?

v1_9_1_378 - Show latest stable - Class: Object
respond_to?(p1, p2 = v2)
public

Returns true if obj responds to the given method. Private methods are included in the search only if the optional second parameter evaluates to true.