 #
 # file - The path of the file
 #
-# Examples
-#
-#   getModuleName('/modules/module1.js')
-#   # => 'module1'
+# ```coffee
+# getModuleName('/modules/module1.js')
+# # => 'module1'
+# ```
 #
 # Returns the module's name without extension
 getModuleName = (file) ->

# occurred, and can optionally return an object that represents the result of
# the module.
#
# Examples
#
#   # We can assume that the following four lines describes the module being
#   # loaded and resides in a file called *modules/mobule1.coffee*
#   exports = module.exports = (context, modules, done) ->
#     # do something ...
#     done null,
#       app: express()
#
#   # We can assume the rest of the code below lives in a separate file that
#   # has access to the module specified above
#   Bijous = require 'bijous'
#   # Loads all modules
#   bijous = new Bijous
#   bijous.load (err, modules) ->
#     # Access the results of module1
#     console.log modules.module1
#
#   Bijous = require 'bijous'
#   # Overrides the cwd option and loads all modules relative to it
#   bijous = new Bijous
#     cwd: '~/modules'
#   bijous.load (err, modules) ->
#     # Access the results of module1
#     console.log modules.module1
#
#   Bijous = require 'bijous'
#   # Overrides the bundles option and loads all modules accordingly
#   bijous = new Bijous
#     bundles: 'modules/!(router)'
#   bijous.load (modules) ->
#     # Access the results of module1
#     console.log modules.module1
#
#   Bijous = require 'bijous'
#   # Overrides the bundles option with multi bundles and loads all modules
#   # one bundle's modules accordingly
#   bijous = new Bijous
#     bundles:
#       server: 'modules/!(router)'
#       web: ['webModules/*', 'adminModules/*']
#   bijous.load (err, modules) ->
#     # Access the results of module1, notice it is namespaced by the bundle
#     # name
#     console.log modules.server.module1
#     console.log modules.web.module2
class Bijous extends EventEmitter
  # Public: The default bundle configuration for klect. This configuration
  # describes how all modules are to be found. (default: `modules/*`).

# Public: An asynchronous module loader. Searches out modules within a file
# system using [Klect](https://github.com/awnist/klect) and supplies an
# asynchronous means of initializing them.
#
# ## Module Definition
#
# Bijous modules are synonymous with klect bundles and can be retrieved and used
# in much the same ways. What bijous adds is the ability to `load` and `require`
