lib/tracksperanto/buffer_io.rb in tracksperanto-2.8.6 vs lib/tracksperanto/buffer_io.rb in tracksperanto-2.9.0
- old
+ new
@@ -1,5 +1,6 @@
+# -*- encoding : utf-8 -*-
require "tempfile"
# BufferIO is used for writing big segments of text. It works like a StringIO, but when the size
# of the underlying string buffer exceeds MAX_IN_MEM_BYTES the string will be flushed to disk
# and it automagically becomes a Tempfile
@@ -60,6 +61,6 @@
end
def replace_with_tempfile_if_needed
replace_with_tempfile if !@tempfile_in && pos > MAX_IN_MEM_BYTES
end
-end
\ No newline at end of file
+end