From: Patrick Gundlach Date: 2005-07-07T19:15:47+09:00 Subject: Re: Inheriting Array and slice() behaviour [...] >> class ENC < DelegateClass(Array) >> ... >> end > > Yep. Great, that works fine with all my tests :) Somehow I was always afraid of delegate.rb. Don't ask me why, perhaps mostly because it is not shipped with lots of examples where it shows its advantage over other approaches (in my case: subclassing Array directly). > Or do it selectively (what I'd prefer). I use my class to build a library. So I don't know in advance what methods the users would like use. So is there a warning attached to the above? Thanks for your advice. Patrick