lib/yard/code_objects/method_object.rb in yard-0.6.1 vs lib/yard/code_objects/method_object.rb in yard-0.6.2

- old
+ new

@@ -102,9 +102,10 @@ # @return [MethodObject] the object that this method overrides # @return [nil] if it does not override a method # @since 0.6.0 def overridden_method + return nil if namespace.is_a?(Proxy) meths = namespace.meths(:all => true) meths.find {|m| m.path != path && m.name == name && m.scope == scope } end # Returns all alias names of the object