Sinatra Block

Ruby code posted by bovi
created at 16 Nov 02:40

Edit | Back
1
2
3
4
5
6
require "sinatra"

q = []
get("/enqueue/:arg", &q.method(:push))
get("/dequeue", &q.method(:shift))
get("/peek", &q.method(:first))
137 Bytes in 2 ms with coderay