class YARD::Handlers::Ruby::ModuleFunctionHandler
Handles module_function calls to turn methods into public class methods. Also creates a private instance copy of the method.
Public Instance Methods
make_module_function(instance_method, namespace)
click to toggle source
# File lib/yard/handlers/ruby/module_function_handler.rb, line 34 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