Method: YARD::Tags::AttributeDirective#method_signature

Defined in:
lib/yard/tags/directives.rb

#method_signatureObject (protected)

Since:

  • 0.7.0


447
448
449
450
451
452
453
# File 'lib/yard/tags/directives.rb', line 447

def method_signature
  if readable?
    "def #{method_name}"
  else
    "def #{method_name}(value)"
  end
end