Method: Rack::Response#each
- Defined in:
- lib/rack/response.rb
permalink #each(&callback) ⇒ Object
[View source]
130 131 132 133 134 135 136 137 138 |
# File 'lib/rack/response.rb', line 130 def each(&callback) @body.each(&callback) @buffered = true if @block @writer = callback @block.call(self) end end |