U:RDoc::AnyMethod[iI"module_function:ETI"Module#module_function;TF: privateo:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [ I"ICreates module functions for the named methods. These functions may ;TI"Hbe called with the module as a receiver, and also become available ;TI"Cas instance methods to classes that mix in the module. Module ;TI"Afunctions are copies of the original, and so may be changed ;TI"Findependently. The instance-method versions are made private. If ;TI"Hused with no arguments, subsequently defined methods become module ;TI"functions. ;TI"/String arguments are converted to symbols.;To:RDoc::Markup::BlankLineo:RDoc::Markup::Verbatim; [I"module Mod ;TI" def one ;TI" "This is one" ;TI" end ;TI" module_function :one ;TI" end ;TI"class Cls ;TI" include Mod ;TI" def call_one ;TI" one ;TI" end ;TI" end ;TI"#Mod.one #=> "This is one" ;TI"c = Cls.new ;TI"#c.call_one #=> "This is one" ;TI"module Mod ;TI" def one ;TI" "This is the new one" ;TI" end ;TI" end ;TI"#Mod.one #=> "This is one" ;TI"*c.call_one #=> "This is the new one";T: @format0: @fileI"vm_method.c;T:0@omit_headings_from_table_of_contents_below0I"Umodule_function(symbol, ...) -> self module_function(string, ...) -> self ;T0[I" (*args);T@.FI" Module;TcRDoc::NormalClass00