class YARD::Handlers::Base

def register_module_function(object)

Other tags:
    Since: - 0.8.0

Parameters:
  • object (CodeObjects::Base) -- the possible module function object
def register_module_function(object)
  return unless object.is_a?(MethodObject)
  return unless object.module_function?
  modobj = MethodObject.new(object.namespace, object.name)
  object.copy_to(modobj)
  modobj.visibility = :private # rubocop:disable Lint/UselessSetterCall
end