Browse files

Avoid String#clear for 1.8.7 compatibility

  • Loading branch information...
1 parent 88940b8 commit a69126ef8ec301d4cd87f6c73166d97ac18d4c83 @eagletmt committed Nov 20, 2013
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

0 comments on commit a69126e

Please sign in to comment.