Wednesday, March 26, 2008

Attribute Meta Classes

Attributes now have their own meta class in Joose. Support for attribute traits is currently quite limited, but you can say:
Class("Car", {
has: {
leftRearWheel: {
init: new Wheel(),
isa: Wheel,
is: rw,
handles: "*"
to only allow Wheels in the attribute leftRearWheel and to delegate all of Wheel's methods to the leftRearWheel.

In other news:

  • Joose is now hosted in the Moose svn
  • Joose now supports the Moose JSON Storage format and allows round trips between Moose and Joose (at least for basic tests)
  • Joose now works in IE and Opera
  • Joose now supports class methods

No comments: