Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created July 8, 2010 15:56
Show Gist options
  • Save canonic-epicure/468207 to your computer and use it in GitHub Desktop.
Save canonic-epicure/468207 to your computer and use it in GitHub Desktop.
Role('Some.Trait', {
builder : {
methods : {
newBuilder : function (meta, info) {
meta.addProperty(...)
}
}
}
})
Class('Some.Class', {
trait : Some.Trait,
newBuilder : { <- info object
},
...
//usual builders
})
// or
Class('Some.Meta.Class', {
isa : Joose.Meta.Class,
meta : Joose.Meta.Class,
builder : {
methods : {
newBuilder : function (meta, info) {
meta.addProperty(...)
}
}
}
})
Class('Some.Class', {
meta : Some.Meta.Class,
newBuilder : { <- info object
},
...
//usual builders
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment