method
respond_to_without_attributes?
v3.0.9 -
Show latest stable
- Class:
ActiveModel::AttributeMethods
respond_to_without_attributes?(method, include_private_methods = false)public
A Person object with a name attribute can ask person.respond_to?(:name), person.respond_to?(:name=), and person.respond_to?(:name?) which will all return true.