cb over class with ZEN style.

fs = require('fs')

class A
  constructor: -> fs.open 'tmptst4', 'a', '0600', @someCallBack
  
  someCallBack: (err, fd) =>
    console.log "asd"
    console.log fd
    console.log "fgh"

a = new A

Posted on 2012-05-31 22:08 with coffeescript in 0.024 sec.