From: Eric Hodel Date: 2006-09-02T10:51:20+09:00 Subject: Re: Best practice? libs and modules On Sep 1, 2006, at 8:13 AM, Patrick Gundlach wrote: > Hello, > > another 'best practice' question. Example: I have a library which I > think should go into > > lib/foo/bar/baz.rb > > Should I use 'module ... ' wrappers to reflect the directory > structure? > I.e. > > module Foo > module Bar > class Baz > end > end > end If you're going this way, class Foo::Bar::Baz leaves out lots of indentation. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com