From: Jonas Bulow Date: 2001-02-19T04:56:40+09:00 Subject: [ruby-talk:11061] Re: to_s and << Yukihiro Matsumoto wrote: > > Hi, > > In message "[ruby-talk:11053] Re: to_s and <<" > on 01/02/18, "Hal E. Fulton" writes: > > |I've never really understood the relationship between > |to_s and to_str (or similarly between to_a and to_ary). > > 'to_s' is a mean to convert something into a string (if you really > want to), OTOH 'to_str' is a mean for something that wants to pretend > to be a string. to_a and to_ary are in similar relationship. Wouldn't name like "as_str" and "to_str" make more sense?