Class: Docwright::Searcher

Inherits:
Object
  • Object
show all
Defined in:
lib/docwright/searcher.rb

Instance Method Summary collapse

Constructor Details

#initialize(term) ⇒ Searcher

Returns a new instance of Searcher.



5
6
7
# File 'lib/docwright/searcher.rb', line 5

def initialize(term)
  @term = term
end

Instance Method Details

#runObject



9
10
11
12
13
14
15
# File 'lib/docwright/searcher.rb', line 9

def run
  puts "\nDocWright Search: \"#{@term}\""
  puts "===================================\n\n"

  results = search_docs
  print_results(results)
end