Documents a 'Class'. A class is typically a collection of static and prototype functions.
MVC Doc can automatically detect classes created with MVC.Class. However, you can make anything
a class with the
@class ClassName directive.
/**
* Person represents a human with a name. Read about the
* animal class [Animal | here].
* @init
* You must pass in a name.
* @params {String} name A person's name
*|
Person = Animal.extend(
/* @Static *|
{
/* Number of People *|
count: 0
},
/* @Prototype *|
{
init : function(name){
this.name = name
this._super({warmblood: true})
},
/* Returns a formal name
* @return {String} the name with "Mrs." added
*|
fancy_name : function(){
return "Mrs. "+this.name;
}
})