Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 442 Bytes

content.md

File metadata and controls

13 lines (12 loc) · 442 Bytes

###Speculoos sample

var Thing = speculoos.Class({
    constructor : function Thing (kind) { /* you have to name the constructor */
        this.kind = kind;
        var _nickName = '???';
        this.getNickName = function () { return _nickName; }
        this.setNickName = function (nickName) { _nickName = nickName; }
    },
    sayHello : function() {
        console.log("Hello !");
    }
})