Add `Entry#mtime=` as an alias of `Entry#time=`.
This commit is contained in:
parent
62ed397b1a
commit
fff1f8ea8a
|
|
@ -145,6 +145,8 @@ module Zip
|
||||||
@time = value if component == :mtime
|
@time = value if component == :mtime
|
||||||
end
|
end
|
||||||
|
|
||||||
|
alias mtime= time=
|
||||||
|
|
||||||
def compression_method
|
def compression_method
|
||||||
return STORED if @ftype == :directory || @compression_level == 0
|
return STORED if @ftype == :directory || @compression_level == 0
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue