Sha256: aa04a60c5d1065d8823c3f44f513b4fc9402628bf827cfb47e9af2a09f21e6c9
Contents?: true
Size: 494 Bytes
Versions: 41
Compression:
Stored size: 494 Bytes
Contents
module RequestLogAnalyzer::Aggregator # Echo Aggregator. Writes everything passed to it 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) output.title("Warnings during parsing") output.puts @warnings end end end
Version data entries
41 entries across 41 versions & 2 rubygems