From: Phrogz Date: 2007-04-09T13:25:05+09:00 Subject: Re: class << Foo; include Foo; end On Apr 8, 5:05 pm, Thomas Hafner wrote: > how should I group some stateless functions into a module and use them > in a very simple way without littering the namespace? E.g. if the > module is ``Foo'' with at least one function foo, then I'd like to use > that module in a way as simple like that: > > require 'Foo' > puts Foo.foo("world") module Foo def self.foo( msg ) puts "Hello #{msg}" end end