Flowdock
method

method_defined_within?

Importance_0
v3.2.3 - Show latest stable - 0 notes - Class: ActiveRecord::AttributeMethods::ClassMethods
method_defined_within?(name, klass, sup = klass.superclass) public

No documentation

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

Hide source
# File activerecord/lib/active_record/attribute_methods.rb, line 108
      def method_defined_within?(name, klass, sup = klass.superclass)
        if klass.method_defined?(name) || klass.private_method_defined?(name)
          if sup.method_defined?(name) || sup.private_method_defined?(name)
            klass.instance_method(name).owner != sup.instance_method(name).owner
          else
            true
          end
        else
          false
        end
      end
Register or log in to add new notes.