lib/sniffer/data.rb in sniffer-0.2.0 vs lib/sniffer/data.rb in sniffer-0.3.0

- old
+ new

@@ -2,10 +2,10 @@ module Sniffer # Data class stores the data and controls capacity class Data < Array def store(data_item) - return unless config.store + return unless data_item.allowed_to_sniff? if config.rotate? rotate(data_item) else push(data_item) unless overflow?