Class: Rack::Chunked::Body
- Inherits:
-
Object
- Object
- Rack::Chunked::Body
- Includes:
- Utils
- Defined in:
- lib/mizuno/rack/chunked.rb
Instance Method Summary collapse
- #close ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(body) ⇒ Body
constructor
A new instance of Body.
Constructor Details
#initialize(body) ⇒ Body
Returns a new instance of Body.
14 15 16 |
# File 'lib/mizuno/rack/chunked.rb', line 14 def initialize(body) @body = body end |
Instance Method Details
#close ⇒ Object
22 23 24 |
# File 'lib/mizuno/rack/chunked.rb', line 22 def close @body.close if @body.respond_to?(:close) end |
#each(&block) ⇒ Object
18 19 20 |
# File 'lib/mizuno/rack/chunked.rb', line 18 def each(&block) @body.each(&block) end |