From: Brian Candler Date: 2003-05-31T01:29:38+09:00 Subject: Re: to_s and concatenation On Sat, May 31, 2003 at 01:06:49AM +0900, Rasputin wrote: > Synonym for String#to_s . to_str is used by methods such as > String#concat to convert their arguments to a string. Unlike to_s, which > is supported by almost all classes, to_str is normally implemented only > by those classes that act like strings. Of the built-in classes, only > Exception and String implement to_str. > > > supports what you just said (although the 'synonym for' sentence is a > bit misleading), but what else would you use to_s for but to > print to stdout? Interpolation into strings - "#{foo}" - uses to_s Regards, Brian.