method

respond_to?

v1_8_6_287 - Show latest stable - Class: Object
respond_to?(...)
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.