Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Justify Left « String « Ruby
Ruby
String
Justify Left
1.
Call ljust and rjust methods with an argument that is less than or equal to the length of the string
2.
The added whitespace is calculated based on the length of the string plus the value of the argument.