Passing ruby circular_buffer