diff options
Diffstat (limited to 'lib/nlp_ruby/fileutil.rb')
-rw-r--r-- | lib/nlp_ruby/fileutil.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nlp_ruby/fileutil.rb b/lib/nlp_ruby/fileutil.rb index 825ceb4..e560aae 100644 --- a/lib/nlp_ruby/fileutil.rb +++ b/lib/nlp_ruby/fileutil.rb @@ -40,7 +40,7 @@ class WriteFile def initialize fn, encoding='utf-8' if fn.split('.').last == 'gz' - @f = Zlib::GzipWrite.new(File.new(fn, 'wb+'), :external_encoding=>encoding) + @f = Zlib::GzipWriter.new(File.new(fn, 'wb+'), :external_encoding=>encoding) elsif fn == '-' @f = STDOUT STDOUT.set_encoding encoding |