Class: YardClassmethods::Directive

Inherits:
YARD::Tags::Directive
  • Object
show all
Defined in:
lib/yard_classmethods.rb

Instance Method Summary collapse

Instance Method Details

#callObject


26
27
28
29
30
31
# File 'lib/yard_classmethods.rb', line 26

def call
  # Mark the module as private so we don't see the methods twice.
  object.visibility = :private
  # Set this instance variable as a marker to be checked down below.
  handler.yard_classmethods_module = object if handler && handler.respond_to?(:yard_classmethods_module)
end