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.


100
101
102
# File 'lib/http/features/auto_deflate.rb', line 100

def initialize(block)
  @block = block
end

Instance Method Details

#write(data) ⇒ Object


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

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