⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
Proc
/
Edit File: %3e%3e-i.ri
U:RDoc::AnyMethod[iI">>:ETI"Proc#>>;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"QReturns a proc that is the composition of this proc and the given <i>g</i>. ;TI"WThe returned proc takes a variable number of arguments, calls this proc with them ;TI")then calls <i>g</i> with the result.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"f = proc {|x| x * x } ;TI"g = proc {|x| x + x } ;TI"p (f >> g).call(2) #=> 8 ;T:@format0o; ; [I"P<i>g</i> could be other Proc, or Method, or any other object responding to ;TI"+call+ method:;T@o;; [ I"class Parser ;TI" def self.call(text) ;TI"1 # ...some complicated parsing logic... ;TI" end ;TI" end ;TI" ;TI"`pipeline = File.method(:read) >> Parser >> proc { |data| puts "data size: #{data.count}" } ;TI" pipeline.call('data.json') ;T; 0o; ; [I"&See also Method#>> and Method#<<.;T: @fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I"prc >> g -> a_proc ;T0[ I" (p1);T@'FI" Proc;TcRDoc::NormalClass00
Simpan