Add `Entry#mtime=` as an alias of `Entry#time=`.

This commit is contained in:
Robert Haines 2022-02-23 12:54:56 +00:00
parent 62ed397b1a
commit fff1f8ea8a
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,8 @@ module Zip
@time = value if component == :mtime
end
alias mtime= time=
def compression_method
return STORED if @ftype == :directory || @compression_level == 0