lib/yard/handlers/base.rb in yard-0.8.7.6 vs lib/yard/handlers/base.rb in yard-0.9.0

- old
+ new

@@ -481,12 +481,11 @@ # # @param [CodeObjects::Base, nil] object the object to register # @return [void] # @since 0.8.0 def register_transitive_tags(object) - return unless object + return unless object && !object.namespace.is_a?(Proxy) Tags::Library.transitive_tags.each do |tag| - next if object.namespace.is_a?(Proxy) next unless object.namespace.has_tag?(tag) next if object.has_tag?(tag) object.add_tag(*object.namespace.tags(tag)) end end