class Rack::Lint::Wrapper::ErrorWrapper

def close(*args)

# * +close+ must never be called on the error stream.
def close(*args)
  raise LintError, "rack.errors#close must not be called"
end

def flush

# in order to make the error appear for sure.
# * +flush+ must be called without arguments and must be called
def flush
  @error.flush
end

def initialize(error)

def initialize(error)
  @error = error
end

def puts(str)

# * +puts+ must be called with a single argument that responds to +to_s+.
def puts(str)
  @error.puts str
end

def write(str)

# * +write+ must be called with a single argument that is a String.
def write(str)
  raise LintError, "rack.errors#write not called with a String" unless str.kind_of? String
  @error.write str
end