D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
ljust-i.ri
back
Copy
U:RDoc::AnyMethod[iI" ljust:ETI"String#ljust;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Returns a left-justified copy of +self+.;To:RDoc::Markup::BlankLine o; ; [I"TIf integer argument +size+ is greater than the size (in characters) of +self+, ;TI"Ereturns a new string of length +size+ that is a copy of +self+, ;TI">left justified and padded on the right with +pad_string+:;T@o:RDoc::Markup::Verbatim; [ I"/'hello'.ljust(10) # => "hello " ;TI"/' hello'.ljust(10) # => " hello " ;TI"/'hello'.ljust(10, 'ab') # => "helloababa" ;TI"7'тест'.ljust(10) # => "тест " ;TI"@'こんにちは'.ljust(10) # => "こんにちは " ;T:@format0o; ; [I"PIf +size+ is not greater than the size of +self+, returns a copy of +self+:;T@o;; [I"$'hello'.ljust(5) # => "hello" ;TI"$'hello'.ljust(1) # => "hello" ;T; 0o; ; [I"*Related: String#rjust, String#center.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"1ljust(size, pad_string = ' ') -> new_string ;T0[ I"(*args);T@%FI"String;TcRDoc::NormalClass00