method

respond_to?

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 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.