module YARD::Templates::Helpers::BaseHelper
def link_object(obj, title = nil)
-
(String)
- the linked object
Parameters:
-
title
(String
) -- the title to use for the link -
obj
(CodeObjects::Base
) -- the object to link to
def link_object(obj, title = nil) return title if title case obj when YARD::CodeObjects::Base, YARD::CodeObjects::Proxy obj.title when String, Symbol P(obj).title else obj end end