阅读背景:

子类化核心Ruby类,如Hash

来源:互联网 

I need a class that acts like a Hash, though not necessarily with all the Hash methods. I've read that it is not a good idea to subclass core classes like Hash. Whether or not that is true, what is the best practice for doing this kind of thing?I need a class that acts like a Hash, though no




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: