lib/zip/null_compressor.rb in rubyzip-0.9.9 vs lib/zip/null_compressor.rb in rubyzip-1.0.0.beta1
- old
+ new
@@ -1,9 +1,9 @@
module Zip
class NullCompressor < Compressor #:nodoc:all
include Singleton
- def << (data)
+ def <<(data)
raise IOError, "closed stream"
end
attr_reader :size, :compressed_size
end