Posted by rp8 on Wednesday, October 01, 2008
If you like Ruby, now you can write JavaScript in a more Ruby-like way, thanks to JS.Class.
An example is copied here.
var Event = new JS.Class({
include: JS.Observable,
fire: function(data) {
this.notifyObservers('fire', data);
}
});