instance method
respond_to_without_attributes?
Ruby on Rails 6.1.7.10
Since v3.0.20Signature
respond_to_without_attributes?(method, include_private_methods = false)
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.
Parameters
-
methodreq -
include_private_methodsopt = false
Alias for
Defined in activemodel/lib/active_model/attribute_methods.rb
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::AttributeMethods