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
to String « Class « Ruby
Ruby
Class
to String
1.
class to string
2.
Getting a Human-Readable Printout of Any Object
3.
Override a to_s method after inheritance
4.
Format ourselves as a string by appending our lyrics to our parent's #to_s value.