2010-11-30 16:27:59 +08:00
|
|
|
module Zip
|
|
|
|
class NullCompressor < Compressor #:nodoc:all
|
|
|
|
include Singleton
|
|
|
|
|
2013-06-03 02:33:03 +08:00
|
|
|
def <<(data)
|
2010-11-30 16:27:59 +08:00
|
|
|
raise IOError, "closed stream"
|
|
|
|
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.
|