From: Robert Klemme Date: 2004-11-24T23:03:01+09:00 Subject: Re: adding class-methods via modules "John Wilger" schrieb im Newsbeitrag news:a05e51b6041124052979981b88@mail.gmail.com... > Awesome! This is exactly why I love Ruby---not just the flexibility of > the language, but also the helpfulness of the community. Thanks! You're welcome. Btw: option 1 can be written even more concise: module Foo module FooClassMethods def bar() puts "#bar#" end end def self.included(mod) mod.extend FooClassMethods end end class Baz include Foo end Baz.bar :-)) Kind regards robert