From: "Iñaki Baz Castillo" Date: 2011-08-15T03:58:24+09:00 Subject: Re: class inheritance and class constants 2011/8/14 Phillip Gawlowski : > What about Modules? > > Create a Server module with Server logic, and mix that into your classes. It's the very same: module M def foo puts "HELLO = #{HELLO}" end end class A HELLO = "I'm A" extend M end A.foo => NameError: uninitialized constant M::HELLO -- Iñaki Baz Castillo