From: Philipp Kern Date: 2005-05-28T18:05:19+09:00 Subject: Re: Coercion and ranges Jim Weirich wrote: > I find it a bit odd that adding two ranges results in an array, but > assuming that is /really/ what you want, you could indicate a Range's > willingness to be converted to an array by including a to_ary method. Well if I see the range as an array of its elements (which you would get when you iterate over it), then it's what one might want. Thank you, that solved it. I thought about to_ary yesterday night, but I was not aware that it would be called by Array#+. Kind regards, Philipp Kern