From: Rick DeNatale Date: 2006-08-14T07:36:35+09:00 Subject: Re: Newbie at ruby - syntactic sugar for Range / Array On 8/12/06, Rick DeNatale wrote: > On 8/12/06, dblack@wobblini.net wrote: > > > > > So the only weird thing is that ranges can turn themselves into arrays > > Nothing at all wierd about that, any enumerable can, which makes > perfect sense when you think about it. And an afterthought. They don't get turned into anything. The message to_a returns an an array which represents the receiver, unless the receiver happens to be an array, in which case it simply returns itself. -- Rick DeNatale IPMS/USA Region 12 Coordinator http://ipmsr12.denhaven2.com/ Visit the Project Mercury Wiki Site http://www.mercuryspacecraft.com/