Implement RingBuffer.flush(), requires testing.
Assert on RingBuffer.flush() closes #15.