| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Module/ |
Upload File : |
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::BlankLine o: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