D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Kernel
/
Filename :
print-i.ri
back
Copy
U:RDoc::AnyMethod[iI" print:ETI"Kernel#print;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"5Equivalent to <tt>$stdout.print(*objects)</tt>, ;TI"Ithis method is the straightforward way to write to <tt>$stdout</tt>.;To:RDoc::Markup::BlankLine o; ; [I"BWrites the given objects to <tt>$stdout</tt>; returns +nil+. ;TI"KAppends the output record separator <tt>$OUTPUT_RECORD_SEPARATOR</tt> ;TI"'<tt>$\\</tt>), if it is not +nil+.;T@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 <tt>stdout</tt>.;To;;0; [o; ; [I"?If not the last object, writes the output field separator ;TI"F<tt>$OUTPUT_FIELD_SEPARATOR</tt> (<tt>$,</tt> if it is not +nil+.;T@o; ; [I"With default separators:;T@o:RDoc::Markup::Verbatim; [ I"Fobjects = [0, 0.0, Rational(0, 1), Complex(0, 0), :zero, 'zero'] ;TI"$OUTPUT_RECORD_SEPARATOR ;TI"$OUTPUT_FIELD_SEPARATOR ;TI"print(*objects) ;T:@format0o; ; [I"Output:;T@o;; [I" nil ;TI" nil ;TI"00.00/10+0izerozero ;T;0o; ; [I"With specified separators:;T@o;; [I"%$OUTPUT_RECORD_SEPARATOR = "\n" ;TI"#$OUTPUT_FIELD_SEPARATOR = ',' ;TI"print(*objects) ;T;0o; ; [I"Output:;T@o;; [I"0,0.0,0/1,0+0i,zero,zero ;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"4gets # Sets $_ to the most recent user input. ;TI"print # Prints $_.;T;0: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"print(*objects) -> nil ;T0[ I"(*args);T@QFI"Kernel;TcRDoc::NormalModule00