From: Martin DeMello Date: 2005-01-18T15:51:06+09:00 Subject: Re: Fwd: [suby-ruby] Your all time desired fundemental Ruby mod "trans. (T. Onoma)" wrote: > > BTW I personally like your style: Button.@background ;) :) > Try: > > class Button > class < self > def background > @background ||= BLUE > end > end > > def repaint > @background = self.class.background > ... > end > end > > class ImageButton < Button > end > > That's the idea. Work for you? No, becaus the idea is that ImageButton will *not* inherit @background from Button, it being a separate object. martin