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.
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 |