Hi,
In message "Re: class of $1, $2 in 1.8.0"
on 03/02/13, J.Herre <jlst / gettysgroup.com> writes:
|> How about making user to choose? For example, if "to_str" return
|> String, subrange object should be String, whereas "to_str" return the
|> receiver subrange object should belong same class as the receiver.
|
|That would be great. Array#to_ary works the same way?
Yes. I should have mentioned. And Hash#to_hash as well.
matz.