Module: YARD::Templates::Helpers::HtmlHelper

Defined in:
lib/yard-thor.rb

Instance Method Summary collapse

Instance Method Details

#signature_for_thor_command(meth, link = true, *args) ⇒ Object Also known as: signature



55
56
57
58
59
60
61
62
# File 'lib/yard-thor.rb', line 55

def signature_for_thor_command(meth, link = true, *args)
  if meth.has_tag?(:thor_command)
    sig = link ? link_object(meth, meth.signature) : meth.signature
    "$ " + sig 
  else
    old_signature(meth, link, *args)
  end
end