View on GitHub


Ring.js - JavaScript Class System with Multiple Inheritance


Build Status npm version

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();

Its advantages:

To get started, read the tutorial.

There is also a FAQ available here.