Class: HTTP::Features::LineIterableBody::IterableBodyWrapper
- Inherits:
-
Response::Body
- Object
- Response::Body
- HTTP::Features::LineIterableBody::IterableBodyWrapper
- Defined in:
- lib/http/features/line_iterable_body.rb
Instance Method Summary collapse
- #each_line(&block) ⇒ Object
-
#initialize(body, encoding) ⇒ IterableBodyWrapper
constructor
A new instance of IterableBodyWrapper.
Constructor Details
#initialize(body, encoding) ⇒ IterableBodyWrapper
Returns a new instance of IterableBodyWrapper.
21 22 23 |
# File 'lib/http/features/line_iterable_body.rb', line 21 def initialize(body, encoding) super(body, encoding: encoding) end |
Instance Method Details
#each_line(&block) ⇒ Object
25 26 27 28 29 |
# File 'lib/http/features/line_iterable_body.rb', line 25 def each_line(&block) each do |chunk| chunk.each_line(&block) end end |