Sha256: 098b6d4089a7163c562fb75e3b1343d42353cf0a44ab964b3b03a37c0c60c56e
Contents?: true
Size: 565 Bytes
Versions: 7
Compression:
Stored size: 565 Bytes
Contents
module RequestLogAnalyzer::Aggregator class Echo < Base def prepare @warnings = "" end def aggregate(request) puts "\nRequest: " + request.inspect end def warning(type, message, lineno) @warnings << "WARNING #{type.inspect} on line #{lineno}: #{message}\n" end def report(output=STDOUT, report_width = 80, color = false) output << "\n" output << "Warnings during parsing:\n" output << green("━" * report_width, color) + "\n" output << @warnings + "\n" end end end
Version data entries
7 entries across 7 versions & 2 rubygems