Skip to content

Instantly share code, notes, and snippets.

@jeanlaurent
Created September 26, 2013 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeanlaurent/6714718 to your computer and use it in GitHub Desktop.
Save jeanlaurent/6714718 to your computer and use it in GitHub Desktop.
class Omnibus
constructor: ->
@commands = []
reset: ->
@commands = []
call: ->
next: ->
if @commands.length == 0
@commands.push 'OPEN', 'CLOSE', 'UP' for i in [1..5]
@commands.push 'OPEN', 'CLOSE', 'DOWN' for i in [1..5]
@commands.shift()
module.exports = Omnibus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment