Method: YARD::Tags::Directive#object

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

#objectCodeObjects::Base? (readonly)

Returns the object the parent docstring is attached to. May be nil.

Returns:

  • (CodeObjects::Base, nil)

    the object the parent docstring is attached to. May be nil.

Since:

  • 0.8.0



42
# File 'lib/yard/tags/directives.rb', line 42

def object; parser.object end