writing a module and stuck on exporting class:( whats the syntax for that?
class exports.Component extends Layer
In general, you can export anything by setting it as a property on the exports object. The example Kevyn gave is just a shorthand for that.So you can do the the same file
exports.pi = 3.141592645
exports.sum = (a, b) ->. a + b
exports.name = "Sergey"
class Test extends Layer...
exports.ExternalNameForTest = Test
i forgot to include module name as prefix in class in prototype, sorted now)