From: "Jan-Erik R." Date: 2009-01-11T20:07:02+09:00 Subject: Re: Namespaces a la C# Cippo Lippo schrieb: > So: is there a way to do something similar in Ruby? Like using a Module, > but splitted on separate files, such as : > > > Module test > Class testclass > end > end > > > Module test > Class testtwoclass > end > end > > and then > > > require 'test' > ... > ts = test::testclass.new > ts2 = test::testtwoclass.new > ... this should work perfectly (if you make the Modulename uppercase). If you don't want to type the "Test::" thingy use "include Test" in bootstrapper.rb And if you wan't to just require 'test', the best way is something like this: Dir["test/*.rb"].each { |file| require file }