Method: ActiveModel::AttributeMethods#respond_to_without_attributes?
- Defined in:
- lib/active_model/attribute_methods.rb
#respond_to_without_attributes? ⇒ Object
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.
422 |
# File 'lib/active_model/attribute_methods.rb', line 422 alias :respond_to_without_attributes? :respond_to? |