method

respond_to?

rails latest stable - Class: ActiveSupport::Multibyte::Chars

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

respond_to?(method, include_private=false)
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.