Possible Duplicate:
Why do this Ruby object have two to_s and inspect methods that do the same thing? Or, so it seems
In Ruby: If x is some variable, is there a difference between using x.inspect and using x.to_s? What is the difference between the 2 methods?