PATH:
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
ARGF
U:RDoc::AnyMethod[iI" print:ETI"ARGF#print;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"<Writes the given objects to the stream; returns +nil+. ;TI"KAppends the output record separator <tt>$OUTPUT_RECORD_SEPARATOR</tt> ;TI")(<tt>$\\</tt>), if it is not +nil+. ;TI"(See {Line IO}[rdoc-ref:IO@Line+IO].;To:RDoc::Markup::BlankLine o; ; [I"4With argument +objects+ given, for each object:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"4Converts via its method +to_s+ if not a string.;To;;0; [o; ; [I"Writes to the stream.;To;;0; [o; ; [I"?If not the last object, writes the output field separator ;TI"G<tt>$OUTPUT_FIELD_SEPARATOR</tt> (<tt>$,</tt>) if it is not +nil+.;T@o; ; [I"With default separators:;T@o:RDoc::Markup::Verbatim; [ I""f = File.open('t.tmp', 'w+') ;TI"Fobjects = [0, 0.0, Rational(0, 1), Complex(0, 0), :zero, 'zero'] ;TI" p $OUTPUT_RECORD_SEPARATOR ;TI"p $OUTPUT_FIELD_SEPARATOR ;TI"f.print(*objects) ;TI"f.rewind ;TI"p f.read ;TI" f.close ;T:@format0o; ; [I"Output:;T@o;; [I" nil ;TI" nil ;TI""00.00/10+0izerozero" ;T;0o; ; [I"With specified separators:;T@o;; [I"$\ = "\n" ;TI"$, = ',' ;TI"f.rewind ;TI"f.print(*objects) ;TI"f.rewind ;TI"p f.read ;T;0o; ; [I"Output:;T@o;; [I"""0,0.0,0/1,0+0i,zero,zero\n" ;T;0o; ; [I"?With no argument given, writes the content of <tt>$_</tt> ;TI"3(which is usually the most recent user input):;T@o;; [ I""f = File.open('t.tmp', 'w+') ;TI"3gets # Sets $_ to the most recent user input. ;TI" f.print ;TI"f.close;T;0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"print(*objects) -> nil ;T0[ I"(*args);T@WFI" ARGF;TcRDoc::NormalClass00
[-] each_byte-i.ri
[edit]
[-] readchar-i.ri
[edit]
[-] readlines-i.ri
[edit]
[-] to_s-i.ri
[edit]
[-] eof-i.ri
[edit]
[-] inplace_mode%3d-i.ri
[edit]
[-] closed%3f-i.ri
[edit]
[-] inplace_mode-i.ri
[edit]
[-] to_a-i.ri
[edit]
[-] each_line-i.ri
[edit]
[-] read_nonblock-i.ri
[edit]
[-] rewind-i.ri
[edit]
[-] binmode%3f-i.ri
[edit]
[-] lineno-i.ri
[edit]
[-] printf-i.ri
[edit]
[-] getc-i.ri
[edit]
[-] external_encoding-i.ri
[edit]
[-] readpartial-i.ri
[edit]
[-] filename-i.ri
[edit]
[-] seek-i.ri
[edit]
[-] putc-i.ri
[edit]
[-] set_encoding-i.ri
[edit]
[-] lineno%3d-i.ri
[edit]
[-] close-i.ri
[edit]
[-] each-i.ri
[edit]
[-] pos-i.ri
[edit]
[-] readline-i.ri
[edit]
[-] path-i.ri
[edit]
[-] readbyte-i.ri
[edit]
[-] binmode-i.ri
[edit]
[-] puts-i.ri
[edit]
[-] getbyte-i.ri
[edit]
[-] each_char-i.ri
[edit]
[-] file-i.ri
[edit]
[-] to_i-i.ri
[edit]
[-] cdesc-ARGF.ri
[edit]
[+]
..
[-] pos%3d-i.ri
[edit]
[-] each_codepoint-i.ri
[edit]
[-] gets-i.ri
[edit]
[-] argv-i.ri
[edit]
[-] internal_encoding-i.ri
[edit]
[-] read-i.ri
[edit]
[-] write-i.ri
[edit]
[-] inspect-i.ri
[edit]
[-] skip-i.ri
[edit]
[-] tell-i.ri
[edit]
[-] fileno-i.ri
[edit]
[-] to_write_io-i.ri
[edit]
[-] print-i.ri
[edit]
[-] eof%3f-i.ri
[edit]
[-] to_io-i.ri
[edit]