hactor
v1.0.2
Published
Hactor = Hapi Actor. Inheritance library
Downloads
1
Readme
hactor
[
Usage
Hactor = require('hactor');
Class = Hactor.extend({
constructor: function () {
// whatever you want in constructor
},
foo: function () {
return 'bar';
}
}, {
xyz: funciton () {
return 123;
}
});
var object = new Class();
console.log(Class.foo()); // -> 'bar'
console.log(object.xyz()); // -> 123