mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
18 lines
389 B
JavaScript
18 lines
389 B
JavaScript
|
|
var Person = makeClass(
|
|
/** @lends Person# */
|
|
{
|
|
/** Construct a Person.
|
|
@constructs Person
|
|
*/
|
|
initialize: function(name) {
|
|
/** The name of the person. */
|
|
this.name = name;
|
|
},
|
|
|
|
/** Speak a message. */
|
|
say: function(message) {
|
|
return this.name + " says: " + message;
|
|
}
|
|
}
|
|
); |