method

respond_to_missing?

respond_to_missing?(method, include_private)
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.