From: Trans Date: 2006-08-10T01:40:20+09:00 Subject: Re: Code structure and using "require" Jean Nibee wrote: > Hi > > I'm coming from a java world and I'm trying to understand the structure > of a Ruby project and how 'require's are resolved. > > In java we have this nice package routine where we put our .java files > into a directory hierarchy that is nice and neat. > > Can I do the same in Ruby (I assume yes) but if I do how are "requires" > resolved when needed and what happend if I move code around the > hierarchy; are the resolve paths relative or abosolute based on some > 'root' directory I"m unaware of. > > (Currently to learn and test all my .rb files are in one directory... > it's getting messy) > > Thanks. http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/480f0df738d2f17a/?hl=en# T.