From: Jim Weirich Date: 2011-01-12T03:23:45+09:00 Subject: [ruby-core:34377] Re: [Ruby 1.9-Feature#4264][Open] General type coercion protocol for Ruby On Jan 11, 2011, at 1:17 PM, James Edward Gray II wrote: > I understood it as to_a/to_s are for conversions. They basically > mean change this object into an Array or a Sring, however it makes > sense to do that for the current object. > > In contrast, to_ary/to_str are for objects that essentially are > enhanced versions of Array or String. They mean, it's OK to pretend > this object is an Array or a String. > > Perhaps I'm wrong though. That's my understanding as well. -- -- Jim Weirich -- jim.weirich@gmail.com