Simple implementation of a circular queue in Ruby, with tests