Flowdock
method

respond_to?

Importance_1
v3.2.13 - Show latest stable - 0 notes - 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?).

Show source
Register or log in to add new notes.