Class: HTTP::Features::AutoDeflate::GzippedBody::BlockIO

Inherits:
Object
  • Object
show all
Defined in:
lib/http/features/auto_deflate.rb

Instance Method Summary collapse

Constructor Details

#initialize(block) ⇒ BlockIO

Returns a new instance of BlockIO.



103
104
105
# File 'lib/http/features/auto_deflate.rb', line 103

def initialize(block)
  @block = block
end

Instance Method Details

#write(data) ⇒ Object



107
108
109
# File 'lib/http/features/auto_deflate.rb', line 107

def write(data)
  @block.call(data)
end