UNPKG

nodulator

Version:

Complete NodeJS Framework for Restfull APIs

23 lines (15 loc) 317 B
Hacktiv = require './' class List extends Hacktiv.Dependency tasks: [] AddTask: (task) -> @tasks.push task @_Changed() Send: -> @_Depends() @tasks list = new List Hacktiv -> # Replace this with a websocket or a stream console.log list.Send() list.AddTask 'test1' list.AddTask 'test2'