lib/protocol/http/body/rewindable.rb in protocol-http-0.12.0 vs lib/protocol/http/body/rewindable.rb in protocol-http-0.12.1

- old
+ new

@@ -31,11 +31,11 @@ @chunks = [] @index = 0 end def read - if @index < @chunks.count + if @index < @chunks.size chunk = @chunks[@index] @index += 1 else if chunk = super @chunks << chunk @@ -50,10 +50,10 @@ def rewind @index = 0 end def inspect - "\#<#{self.class} #{@index}/#{@chunks.count} chunks read>" + "\#<#{self.class} #{@index}/#{@chunks.size} chunks read>" end end end end end