Skip to content

Instantly share code, notes, and snippets.

@canonic-epicure
Created July 26, 2010 07:21
Show Gist options
  • Save canonic-epicure/490275 to your computer and use it in GitHub Desktop.
Save canonic-epicure/490275 to your computer and use it in GitHub Desktop.
require('Task/Joose/NodeJS')
var puts = require('sys').puts
Class('Some.Class', {
has : {
attrib : {
is : 'rw',
trigger : function () {
puts('trigger called')
}
}
}
})
var instance = new Some.Class()
instance.setAttrib('value')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment