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
Menu
String.new « String « Ruby
Ruby
String
String.new
1.
Creating Strings
2.
test a string to see if it is empty with empty?
3.
test a string to see if it is empty before you process it
4.
length and size methods both return an integer indicating how many characters a string holds.
5.
The new method can take a string argument