    # File lib/yard/templates/helpers/html_helper.rb, line 254
          def link_object(obj, otitle = nil, anchor = nil, relative = true)
            return otitle if obj.nil?
            obj = Registry.resolve(object, obj, true, true) if obj.is_a?(String)
            if !otitle && obj.root?
              title = "Top Level Namespace"
            elsif otitle
              title = otitle.to_s
            elsif object.is_a?(CodeObjects::Base)
              title = h(object.relative_path(obj))
            else
              title = h(obj.to_s)
            end
            return title unless serializer
            return title if obj.is_a?(CodeObjects::Proxy)

            link = url_for(obj, anchor, relative)
            link = link ? link_url(link, title, :title => h("#{obj.path} (#{obj.type})")) : title
            "<span class='object_link'>" + link + "</span>"
          end