Class: Orgrep::SearchWordList
- Inherits:
-
Object
- Object
- Orgrep::SearchWordList
- Defined in:
- lib/orgrep/search_word_list.rb
Overview
call search word from argv or text file.
Class Method Summary collapse
Class Method Details
.words(words) ⇒ Object
6 7 8 9 10 |
# File 'lib/orgrep/search_word_list.rb', line 6 def self.words(words) return words if words File.read(Orgrep::SPECIFIED_SEARCH_WORDS_TXT_PATH).split("\n").uniq end |