class AdLint::Postfilter::StderrContent

Public Class Methods

new(str) click to toggle source
Calls superclass method
# File lib/adlint/postfilter/content.rb, line 64
def initialize(str)
  lines = str.lines.each_with_object([]) { |line, ary|
    if line =~ /:(?:warning|context):/
      ary.push(PlainMessageLine.new(line.chomp))
    else
      ary.push(OrdinaryLine.new(line.chomp))
    end
  }
  super(lines)
end

Public Instance Methods

overwrite!() click to toggle source
# File lib/adlint/postfilter/content.rb, line 75
def overwrite!
  $stderr.puts self.compact
end