Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Avoid String#clear for 1.8.7 compatibility

  • Loading branch information...
commit a69126ef8ec301d4cd87f6c73166d97ac18d4c83 1 parent 88940b8
@eagletmt eagletmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/twitter/streaming/buffered_tokenizer.rb
View
2  lib/twitter/streaming/buffered_tokenizer.rb
@@ -10,7 +10,7 @@ def extract(data)
@buffer << data
items = @buffer.split(@delimiter)
if @buffer.end_with?(@delimiter)
- @buffer.clear
+ @buffer = ''
items
else
@buffer = items.pop
Please sign in to comment.
Something went wrong with that request. Please try again.