Flowdock
method

respond_to?

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

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/attribute_methods.rb, line 455
    def respond_to?(method, include_private_methods = false)
      if super
        true
      elsif !include_private_methods && super(method, true)
        # If we're here then we haven't found among non-private methods
        # but found among all methods. Which means that the given method is private.
        false
      else
        !match_attribute_method?(method.to_s).nil?
      end
    end
Register or log in to add new notes.