D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
PP
/
Filename :
width_for-c.ri
back
Copy
U:RDoc::AnyMethod[iI"width_for:ETI"PP::width_for;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I")Returns the usable width for +out+. ;TI"As the width of +out+:;To:RDoc::Markup::List: @type:NUMBER:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"=If +out+ is assigned to a tty device, its width is used.;To;;0; [o; ; [I"<Otherwise, or it could not get the value, the +COLUMN+ ;TI"<environment variable is assumed to be set to the width.;To;;0; [o; ; [I"@If +COLUMN+ is not set to a non-zero number, 80 is assumed.;To:RDoc::Markup::BlankLine o; ; [I"4And finally, returns the above width value - 1.;To;;:BULLET;[o;;0; [o; ; [I"FThis -1 is for Windows command prompt, which moves the cursor to ;TI"1the next line if it reaches the last column.;T: @fileI"lib/pp.rb;T:0@omit_headings_from_table_of_contents_below000[ I" (out);T@-FI"PP;TcRDoc::NormalClass00