lib/itools/string_searcher.rb in itools-0.1.5 vs lib/itools/string_searcher.rb in itools-0.1.6

- old
+ new

@@ -50,9 +50,10 @@ end # 从文件查找 def search_in_file(temp_file) line_index = 1 File.read(temp_file).each_line do |line| + puts line haveIndex = StringHandle.containsStr(line,@search_strs) if haveIndex != -1 search_result = SearchResult.new(temp_file,line_index,line,@search_strs[haveIndex]) @result << search_result end