Sha256: d485972a85d0f23f5e7def6846b5558795b36cc8595292edbc71721f2b3c8321

Contents?: true

Size: 648 Bytes

Versions: 76

Compression:

Stored size: 648 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/>&nbsp;&nbsp;&nbsp;")
end

Version data entries

76 entries across 59 versions & 8 rubygems

Version Path
challah-rolls-0.1.0 vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.8.0.pre vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.7.1 vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.7.0 vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.7.0.pre2 vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.7.0.pre vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.6.2 vendor/bundle/gems/yard-0.8.2.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.6.2 vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/setup.rb
challah-0.6.2 vendor/bundle/gems/yard-0.8.1/docs/templates/default/yard_tags/html/setup.rb
yard-0.8.2.1 docs/templates/default/yard_tags/html/setup.rb
challah-0.6.1 vendor/bundle/gems/yard-0.8.1/docs/templates/default/yard_tags/html/setup.rb
challah-0.6.1 vendor/bundle/gems/yard-0.8.2/docs/templates/default/yard_tags/html/setup.rb
yard-0.8.2 docs/templates/default/yard_tags/html/setup.rb
challah-0.6.0 vendor/bundle/gems/yard-0.8.1/docs/templates/default/yard_tags/html/setup.rb
yard-0.8.1 docs/templates/default/yard_tags/html/setup.rb
yard-0.8.0 docs/templates/default/yard_tags/html/setup.rb