J
Jean Nibee
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.
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.