set_root
command also generates four helpers.Eucalypt.root
simply returns the full application root directory path as a string.Eucalypt.path
allows for the construction of absolute paths relative to the application root directory. Eucalypt.glob
allows for the globbing of files relative to the application root directory. The method works in the same way as Dir.glob
, and also accepts a block that allows you to operate on the globbed files. Eucalypt.require
allows for the requiring of multiple files relative to the application root directory. Note that it is not possible to specify the order in which files are required.Kernel
's require method, files must include their extensions.