Joose can write TPS-Reports

malte on 2008-03-22T12:52:39

While advancing at least two computer science zen levels I augmented my brain enough to implement the augment method modifier in Joose.

Class("HTMLDoc", {
	augment: {
		html: function () { return ""+this.INNER()+"" }
	}
})



Class("HTMLDocBody", { isa: HTMLDoc, augment: { html: function () { return ""+this.INNER()+"" } } })

Class("TPSReport", { isa: HTMLDocBody, augment: { html: function () { return "

TPS-Report

" } } })


While making method modifiers stackable was really easy for all the other modifiers, I had to roll my own reverse call stack to make it happen with augment.