Function.method('inherits', function(parent) {
var depth = 0;
var proto = this.prototype = new parent();
this.method('uber', function uber(name) {
var func; var ret; var v = parent.prototype;
if (depth) {
for ( var i = d; i > 0; i += 1 ) {
v = v.constructor.prototype;
}
func = v[name];
}
else {
func = proto[name];
if ( func == this[name] ) {
func = v[name];
}
}
depth += 1;
ret = func.apply(this, Array.prototype.slice.apply(arguments, [1]));
depth -= 1;
return ret;
});
return this;
});