From: Chris Carter Date: 2007-05-25T20:57:14+09:00 Subject: Re: Ruby programming challenges and riddles? On 5/25/07, Ari Brown wrote: > > On May 24, 2007, at 8:40 PM, Chris Carter wrote: > > > > > I was under the impression they are removing Object#to_a, not > > Enumerable#to_a... > > You're probably right. I was criticized for using to_a in that > context, so you're probably right. > What would be an example of Object#to_a? > > > ---------------------------------------------------------------| > ~Ari > "I don't suffer from insanity. I enjoy every minute of it" --1337est > man alive > > > > > >> Object.new.to_a (irb):1: warning: default `to_a' will be obsolete => [#] vs. >> (1..10).to_a # Ranges mixin Enumerable for to_a => [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] -- Chris Carter concentrationstudios.com brynmawrcs.com