On Fri, 27 Oct 2006, bachase / gmail.com wrote: > I'll say thanks to both of you. I think I was confused on all > accounts, but the biggest issue is probably that I thought the > @favorites was the same for both classes. I guess I will need to > restructure things then. Basically, I want the base class to provide > some default settings that a child class could override using a class > method. Apparently, I am unclear on the way to do so. it's astonishingly hard to do in a generic way. take my word for it, the easiest way is to do harp:~ > cat a.rb require 'rubygems' require 'attributes' class C class << self attribute 'a' => 42 end end class K < C end p C.a p K.a class K a 'forty-two' end p C.a p K.a harp:~ > ruby a.rb 42 42 42 "forty-two" regards. -a -- my religion is very simple. my religion is kindness. -- the dalai lama