From: Yukihiro Matsumoto Date: 2007-10-26T04:12:03+09:00 Subject: Re: flatten, rb_check_array_type and proxy class Hi, In message "Re: flatten, rb_check_array_type and proxy class" on Wed, 24 Oct 2007 14:17:53 +0900, tom wang writes: |Now my problem is that I would like this proxyclass to behave exactly like the object it proxies | |So for example if I did | |[4,5,[1,3], SavingProxy.new([2,3])].flatten | |I would like to get this: | |[4,5,1,3,2,3] | |How could i do that? You have to provide #to_ary method explicitly, since Ruby checks it via respond_to? matz.