⚝
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
/
ruby31
/
share
/
ri
/
system
/
Proc
/
Edit File: eql%3f-i.ri
U:RDoc::AnyMethod[iI" eql?:ETI"Proc#eql?;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"XTwo procs 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_below000[ I" (p1);T@#FI" Proc;TcRDoc::NormalClass0[@&FI"==;T
Simpan