1 Function.prototype.method = function (name, func) {
2 this.prototype[name] = func;
6 Function.method('inherits', function (parent) {
7 var d = 0, p = (this.prototype = new parent());
8 this.constructor = this;
9 this.prototype.superclass = parent;
10 this.method('uber', function uber(name) {
11 var f, r, t = d, v = parent.prototype;
14 v = v.constructor.prototype;
20 if (f == this[name]) {
25 r = f.apply(this, Array.prototype.slice.apply(arguments, [1]));
33 instance_of = function(o, c) {
35 if (o.constructor === c) {