rubyzip/lib/zip/null_decompressor.rb

28 lines
440 B
Ruby
Raw Normal View History

module Zip
2013-08-30 04:50:12 +08:00
module NullDecompressor #:nodoc:all
module_function
2013-06-03 02:33:03 +08:00
def sysread(_numberOfBytes = nil, _buf = nil)
nil
end
2013-06-03 02:33:03 +08:00
def produce_input
nil
end
2013-06-03 02:33:03 +08:00
def input_finished?
true
end
def eof
true
end
2013-06-03 02:33:03 +08:00
alias eof? eof
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.