Fixed size FIFO in Ruby