Ring.js - JavaScript Class System with Multiple Inheritance
Ring.js is a class system in JavaScript allowing multiple inheritance.
var Human = ring.create({
talk: function() {
return "hello";
},
});
var Spider = ring.create({
climb: function() {
return "climbing";
},
});
var SpiderMan = ring.create([Spider, Human], {
talk: function() {
return this.$super() + ", my name is Peter Parker";
}
});
var spiderman = new SpiderMan();
console.log(spiderman.talk());
Its advantages:
To get started, read the tutorial.
There is also a FAQ available here.