             methods: [],
             extends: null,
             type: "class",
-            varName : null,
-            path: null
+            requireLines: []
         }
 
         fullname = string.split(":")[0]

        def.fullname = fullname

        if (fullname.toLowerCase() == "r")
            varName = string.split(":")[1]
            path = string.split(":")[2]
            def.type = "require"
            def.varName = varName
            def.path = ((path != null) ? path : varName);
            if typeof path != "undefined" && path.length > 0
                def.path = path
            else
                def.path = varName

            return def


            buffer += "\n}());"

        else if classdef.type == "require"
                for line in classdef.requireLines
                    buffer += "var #{line.varName} = require(\"#{line.path}\");"
                    buffer += "\n"

        editor.insertText buffer

