Method: Rush::SearchResults#add

Defined in:
lib/rush/search_results.rb

#add(entry, lines) ⇒ Object

Add a Rush::Entry and the array of string matches.



28
29
30
31
32
33
# File 'lib/rush/search_results.rb', line 28

def add(entry, lines)
	# this assumes that entry is unique
	@entries << entry
	@entries_with_lines[entry] = lines
	@lines += lines
end