method

respond_to_without_attributes?

Importance_1
respond_to_without_attributes?(method, include_private_methods = false) public

A Person instance with a name attribute can ask person.respond_to?(:name), person.respond_to?(:name=), and person.respond_to?(:name?) which will all return true.

Register or log in to add new notes.