という名前のファイルがあり、そのparticipant.coffee中に 2 つのクラスがあるとします。
class ParticipantData
constructor: (data) ->
# whatever
doSomething:
console.log 'participant data!'
class ParticipantResult
doAnotherThing:
console.log 'participant result!'
module.exports = new ParticipantResult()
現在ParticipantResult、 を使用してアクセスできますが、のコンストラクターrequire('.particpantresult')を呼び出す方法がわかりません。独自のファイルに移動せずParticipantDataにアクセスすることはできますか?ParticipantData