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
Using the length Method of the String Class : length « String « Ruby
Ruby
String
length
Using the length Method of the String Class
puts
"This is a test"
.length
Related examples in the same category
1.
Get the longest word