file name
suffix string, such as .js, etc.
Load modules under the path. If the module is a function, loader would treat it as a factory function and invoke it with the context parameter to get a instance of the module. Else loader would just require the module. Module instance can specify a name property and it would use file name as the default name if there is no name property. All loaded modules under the path would be add to an empty root object with the name as the key.
the path of modules. Load all the files under the path, but not recursively if the path contain any sub-directory.
the context parameter that would be pass to the module factory function.
module that has loaded.
Check file suffix