Class: Rack::Lint::HijackWrapper

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Assertion
Defined in:
rack/rack/lint.rb

Constant Summary

REQUIRED_METHODS =
[
  :read, :write, :read_nonblock, :write_nonblock, :flush, :close,
  :close_read, :close_write, :closed?
]

Instance Method Summary (collapse)

Constructor Details

- (HijackWrapper) initialize(io)

Returns a new instance of HijackWrapper



440
441
442
443
444
445
# File 'rack/rack/lint.rb', line 440

def initialize(io)
  @io = io
  REQUIRED_METHODS.each do |meth|
    assert("rack.hijack_io must respond to #{meth}") { io.respond_to? meth }
  end
end

Instance Method Details

- (void) assert(message, &block) Originally defined in module Assertion