function(options) {
  EventEmitter.apply(this, arguments);
  options = options || {};
  this.limit = options.limit || 16;
  this.json = options.json || false;
  this.records = options.records || [];
}
function(options) {
  EventEmitter.apply(this, arguments);
  options = options || {};
  this.limit = options.limit || 16;
  this.json = options.json || false;
  this.records = options.records || [];
}
function ( options ) { EventEmitter . apply ( this , arguments ) ; options = options || { } ; this . limit = options . limit || 16 ; this . json = options . json || false ; this . records = options . records || [ ] ; }
Creates a RingBuffer instance.

@param options The stream configuration options.
Creates a RingBuffer instance .