Class: HTTP::Features::AutoDeflate::GzippedBody::BlockIO
- Inherits:
-
Object
- Object
- HTTP::Features::AutoDeflate::GzippedBody::BlockIO
- Defined in:
- lib/http/features/auto_deflate.rb
Instance Method Summary collapse
-
#initialize(block) ⇒ BlockIO
constructor
A new instance of BlockIO.
- #write(data) ⇒ Object
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 |