⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Proc
/
View File Name :
%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