anom関数から@colsにアクセスしようとしていますが、それは定義されていても(2行目の最後の行に)定義されていません。anomからのインスタンス変数へのアクセス。コーヒースクリプトの関数
csv = require 'csv' class Inventory constructor: (@file) -> @cols = {} #Read the file and push to cols csv(). fromPath(@file,columns: true). on 'data', (d,index)-> #push to cols console.log @cols inventory = new Inventory(__dirname + '/sample.csv')
何ANOM機能は 'の立つんへの参照を取得することができるように? – epidemian