class Zip::EntryNumberMismatchError
Public Class Methods
new(size, size_in_bytes)
click to toggle source
Create a new EntryNumberMismatchError with the specified size and size in bytes.
Calls superclass method
# File lib/zip/errors.rb, line 114 def initialize(size, size_in_bytes) super() @size = size @size_in_bytes = size_in_bytes end
Public Instance Methods
message()
click to toggle source
The message returned by this error.
# File lib/zip/errors.rb, line 121 def message "Zip consistency problem: an impossibly high number of entries (#{@size}) " \ 'is declared in this file, compared to the size of the central directory ' \ "(#{@size_in_bytes} bytes)." end