rubyzip/lib/zip/null_decompressor.rb

22 lines
380 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Zip
module NullDecompressor # :nodoc:all
module_function
2013-06-03 02:33:03 +08:00
2020-01-05 23:06:05 +08:00
def read(_length = nil, _outbuf = nil)
nil
end
2013-06-03 02:33:03 +08:00
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.