method
respond_to?
v3.2.8 -
Show latest stable
- Class:
ActiveResource::Base
respond_to?(method, include_priv = false)public
A method to determine if an object responds to a message (e.g., a method call). In Active Resource, a Person object with a name attribute can answer true to my_person.respond_to?(:name), my_person.respond_to?(:name=), and my_person.respond_to?(:name?).