Flowdock
method

respond_to_without_attributes?

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: ActiveModel::AttributeMethods
respond_to_without_attributes?(method, include_private_methods = false) public

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.

Register or log in to add new notes.