Method: Cocoadex::DocSetHelper.search_and_index
- Defined in:
- lib/cocoadex/docset_helper.rb
.search_and_index(paths = docset_paths) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/cocoadex/docset_helper.rb', line 26 def self.search_and_index paths=docset_paths docsets = [] paths.map do |path| if docset = Parser.parse(path) docsets << docset end end if docsets.size > 0 Tokenizer.persist CompletionHelper. write(docsets) end logger.info "Done! #{docsets.size} DocSet#{docsets.size == 1 ? '':'s'} indexed." end |