Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canonic-epicure/384168 to your computer and use it in GitHub Desktop.
Save canonic-epicure/384168 to your computer and use it in GitHub Desktop.
// ================================================
// Joose classes, depending on Joose classes only
Class('Graphic.Circle', {
does : {
'Some.Joose.Role' : 0.01,
},
use : {
'Some.Another.Class' : 0.02
},
has : {
radius : {
is : 'rw',
init : '123'
}
},
methods : {
draw : function () {
Some.Another.Class.someFunc("using imported function as class method")
}
}
})
var circle = new Graphic.Circle()
circle.draw()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment