Method: YARD::Handlers::Processor#owner

Defined in:
lib/yard/handlers/processor.rb

#ownerCodeObjects::Base?

Returns unlike the namespace, the owner is a non-namespace object that should be stored between statements. For instance, when parsing a method body, the CodeObjects::MethodObject is set as the owner, in case any extra method information is processed.

Returns:

  • (CodeObjects::Base, nil)

    unlike the namespace, the owner is a non-namespace object that should be stored between statements. For instance, when parsing a method body, the CodeObjects::MethodObject is set as the owner, in case any extra method information is processed.


55
56
57
# File 'lib/yard/handlers/processor.rb', line 55

def owner
  @owner
end