From: Wakou Aoyama Date: 1999-02-13T07:25:44+09:00 Subject: [ruby-list:12056] Re: What's DelegateClass ? (Re: how to make class?) 青山です。 Sat, Feb 13, 1999 at 01:04:50AM +0900 において Kikutani, Makoto さん曰く: > > class B < Hash > > def help > > print "help\n" > > end > > end > > > > test = B.new > > test['a'] = 'b' > > p test # {'a'=>'b'} > > test.help # "help\n" を出力 > > ass Hash > def help > print "help\n" > end > end > > test = {} > test['a'] = 'b' > p test > test.help > > でもできますよね? > > いつもこの違いがわからないんですよ。 後者の場合はこれ以降のすべての Hash に影響するという点で異なりますが、 そういう事ではなく、でしょうか? -- 青山 和光 Wakou Aoyama