Method: Rack::Lint#check_error
- Defined in:
- lib/rack/lint.rb
#check_error(error) ⇒ Object
The Error Stream
353 354 355 356 357 358 359 360 |
# File 'lib/rack/lint.rb', line 353 def check_error(error) ## The error stream must respond to +puts+, +write+ and +flush+. [:puts, :write, :flush].each { |method| assert("rack.error #{error} does not respond to ##{method}") { error.respond_to? method } } end |