2010-11-30 16:27:59 +08:00
|
|
|
module Zip
|
|
|
|
class NullCompressor < Compressor #:nodoc:all
|
|
|
|
include Singleton
|
|
|
|
|
2015-03-21 04:09:41 +08:00
|
|
|
def <<(_data)
|
2015-03-21 16:27:44 +08:00
|
|
|
raise IOError, 'closed stream'
|
2010-11-30 16:27:59 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
attr_reader :size, :compressed_size
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Copyright (C) 2002, 2003 Thomas Sondergaard
|
|
|
|
# rubyzip is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the ruby license.
|