class YARD::Handlers::Ruby::ModuleFunctionHandler
Also creates a private instance copy of the method.
Handles module_function calls to turn methods into public class methods.
frozen_string_literal: true
def make_module_function(instance_method, namespace)
def make_module_function(instance_method, namespace) class_method = MethodObject.new(namespace, instance_method.name, :module) instance_method.copy_to(class_method) class_method.visibility = :public end