Wednesday, March 19, 2008

New Class-Builder Syntax for Joose

Joose now supports two new ways to create Joose.Classes

joosify(MyClass) now turns regular classes into Joose.Clases.

...and you can now use a more JavaScript like Syntax to build Joose.Classes:

Class("Currency", {
does: Eq,
has: ["value", {is: rw}],
methods: {
initialize: function (value) {

isEqual: function (cur) {
return this.getValue() == cur.getValue()
Post a Comment