From: trans Date: 2009-10-13T10:24:18+09:00 Subject: Re: Class Level inheritable attributes - are we there yet? Closer to what you want? class A def self.foo instance_variable_defined?("@foo") ? @foo : foo! end def self.foo! @foo = ancestors[1].foo if ancestors[1].respond_to?(:foo) end def self.foo=(x) @foo = x end end