| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/ARGF/ |
Upload File : |
U:RDoc::AnyMethod[iI" each:ETI"ARGF#each;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NReturns an enumerator which iterates over each line (separated by _sep_, ;TI"Jwhich defaults to your platform's newline character) of each file in ;TI"N+ARGV+. If a block is supplied, each line in turn will be yielded to the ;TI"1block, otherwise an enumerator is returned. ;TI"JThe optional _limit_ argument is an +Integer+ specifying the maximum ;TI"Mlength of each line; longer lines will be split according to this limit.;To:RDoc::Markup::BlankLine o;
; [I"OThis method allows you to treat the files supplied on the command line as ;TI"Ma single file consisting of the concatenation of each named file. After ;TI"Nthe last line of the first file has been returned, the first line of the ;TI"Psecond file is returned. The +ARGF.filename+ and +ARGF.lineno+ methods can ;TI"Mbe used to determine the filename and line number, respectively, of the ;TI"current line.;T@o;
; [I"MFor example, the following code prints out each line of each named file ;TI"Jprefixed with its line number, displaying the filename once per file:;T@o:RDoc::Markup::Verbatim; [ I"ARGF.each_line do |line|
;TI". puts ARGF.filename if ARGF.lineno == 1
;TI"& puts "#{ARGF.lineno}: #{line}"
;TI"end;T:@format0:
@fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"[ARGF.each(sep=$/) {|line| block } -> ARGF
ARGF.each(sep=$/, limit) {|line| block } -> ARGF
ARGF.each(...) -> an_enumerator
ARGF.each_line(sep=$/) {|line| block } -> ARGF
ARGF.each_line(sep=$/, limit) {|line| block } -> ARGF
ARGF.each_line(...) -> an_enumerator;T0[ I"(*args);T@&FI" ARGF;TcRDoc::NormalClass00