can generate jsdoc; private methods marked as such
[dygraphs.git] / jsdoc-toolkit / app / test / constructs.js
diff --git a/jsdoc-toolkit/app/test/constructs.js b/jsdoc-toolkit/app/test/constructs.js
new file mode 100644 (file)
index 0000000..cca5dbd
--- /dev/null
@@ -0,0 +1,18 @@
+var Person = makeClass(
+    /**
+      @scope Person
+    */
+    {
+        /**
+               This is just another way to define a constructor.
+               @constructs
+               @param {string} name The name of the person.
+         */
+        initialize: function(name) {
+            this.name = name;
+        },
+        say: function(message) {
+            return this.name + " says: " + message;
+        }
+    }
+);
\ No newline at end of file