class PrettySearch::MemoryCollection

PrettySearch::MemoryCollection parses the given data_file into hash and keep everything in memory, and iterates through the records naively from beginning to end when searching

Public Class Methods

new(data_file, first: false) click to toggle source
# File lib/pretty_search/collection/memory_collection.rb, line 7
def initialize(data_file, first: false)
  @data_file = data_file
  @first = first
end

Public Instance Methods