Class: Sniffer::Data
- Inherits:
-
Array
- Object
- Array
- Sniffer::Data
- Defined in:
- lib/sniffer/data.rb
Overview
Data class stores the data and controls capacity
Instance Method Summary collapse
Instance Method Details
#store(data_item) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/sniffer/data.rb', line 6 def store(data_item) if config.rotate? rotate(data_item) else push(data_item) unless overflow? end end |