Sha256: fa73103230bd6486d1fc88417fea2747697ee5ab6235b6b2b87ad0f385c7dec1
Contents?: true
Size: 674 Bytes
Versions: 3
Compression:
Stored size: 674 Bytes
Contents
def init sections :list, [T('docstring')] end def tag_signature(tag) types = tag.types || [] signature = "<strong>#{tag_link_name(tag)}</strong> " extra = nil if sig_tag = tag.object.tag('yard.signature') extra = sig_tag.text end extra = case types.first when 'with_name' "name description" when 'with_types' "[Types] description" when 'with_types_and_name' "name [Types] description" when 'with_title_and_text' "title\ndescription" when 'with_types_and_title' "[Types] title\ndescription" else "description" end if extra.nil? signature + h(extra).gsub(/\n/, "<br/> ") end
Version data entries
3 entries across 3 versions & 1 rubygems