Module: SequenceServer::Search

Defined in:
lib/sequenceserver/search.rb

Overview

Keep track of last 100 searches in memory.

Constant Summary collapse

TRACK =
100

Class Method Summary collapse

Class Method Details

.<<(file) ⇒ Object


7
8
9
10
# File 'lib/sequenceserver/search.rb', line 7

def <<(file)
  data.shift if data.length >= TRACK
  data << file
end