Class | RSCM::AbstractLogParser |
In: |
lib/rscm/abstract_log_parser.rb
|
Parent: | Object |
# File lib/rscm/abstract_log_parser.rb, line 29 29: def convert_all_slashes_to_forward_slashes(file) 30: file.gsub(/\\/, "/") 31: end
# File lib/rscm/abstract_log_parser.rb, line 14 14: def read_until_matching_line(regexp) 15: return nil if @io.eof? 16: result = "" 17: @io.each_line do |line| 18: line.gsub!(/\r\n$/, "\n") 19: break if line =~ regexp 20: result << line 21: end 22: if result.strip == "" 23: read_until_matching_line(regexp) 24: else 25: result 26: end 27: end