Created
April 29, 2010 20:11
-
-
Save canonic-epicure/384168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================================================ | |
// 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