aboutsummaryrefslogtreecommitdiff
path: root/tools/jsdoc-toolkit-2.4.0/app/test/constructs.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/jsdoc-toolkit-2.4.0/app/test/constructs.js')
-rw-r--r--tools/jsdoc-toolkit-2.4.0/app/test/constructs.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/jsdoc-toolkit-2.4.0/app/test/constructs.js b/tools/jsdoc-toolkit-2.4.0/app/test/constructs.js
new file mode 100644
index 0000000..cca5dbd
--- /dev/null
+++ b/tools/jsdoc-toolkit-2.4.0/app/test/constructs.js
@@ -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