             autoload path, app
           else
             require(path)?(app)
+
+      # Return last item of an array
+      # ['a', 'b', 'c'].last() => 'c'
+      Array::last = ->
+        this[this.length - 1]
 
       # Capitalize a string
       # string => String

      #
      # Or if you want this to be a class
      #
      # class MyCustomClass
      #
      #   constructor: (args) ->
      #     # Your code
      #
      # # Exports
      # module.exports = (app) ->
      #   app.MyCustomClass = MyCustomClass
      #
      # Usage: new app.MyCustomClass(args)
    """


    # ./myapp/app/controllers
    files["#{@appName}/app/controllers/application_controller.coffee"] = """
      module.exports = (app) ->
        class app.ApplicationController

          # GET /
          @index = (req, res) ->
            res.render 'index',
              view: 'index'
    """

    # ./myapp/app/helpers
