From: JB Eriksson Date: 2005-11-27T03:25:15+09:00 Subject: Re: warning: default `to_a' will be obsolete ------=_Part_33332_24258847.1133029508573 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 11/26/05, David Corbin wrote: > > I'm getting this warning, which I think is new in 1.8.3. > > warning: default `to_a' will be obsolete > > However, I can't find what the expected alternative is. Any pointers? > > David > > Object#to_a from ri: Returns an array representation of _obj_. For objects of class +Object+ and others that don't explicitly override the method, the return value is an array containing +self+. However, this latter behavior will soon be obsolete. so it's this "return array containing self" that's going obsolete. ------=_Part_33332_24258847.1133029508573--