Method: Rush::SearchResults#initialize
- Defined in:
- lib/rush/search_results.rb
#initialize(pattern) ⇒ SearchResults
Make a blank container. Track the pattern so that we can colorize the output to show what was matched.
18 19 20 21 22 23 24 25 |
# File 'lib/rush/search_results.rb', line 18 def initialize(pattern) # Duplication of data, but this lets us return everything in the exact # order it was received. @pattern = pattern @entries = [] @entries_with_lines = {} @lines = [] end |