"IƱaki Baz Castillo" <ibc / aliax.net> wrote in post #1016621: > ------------------------ > class A > HELLO = "Hello I'm A" > > def hello > puts HELLO > end > end > > class B < A > HELLO = "Hello I'm B" > > def hello2 > puts HELLO > end > end Change puts HELLO to puts self.class::HELLO and it should work the way you want. Ruby's constant resolution is static, unless you force it to be dynamic his way.