Class: Rack::Chunked::Body

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/mizuno/rack/chunked.rb

Instance Method Summary collapse

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

#closeObject



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