Exception: Zip::EntrySizeError
- Defined in:
- lib/zip/errors.rb
Overview
Error raised if an entry is larger on extraction than it is advertised to be.
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(entry) ⇒ EntrySizeError
constructor
A new instance of EntrySizeError.
- #message ⇒ Object
Constructor Details
#initialize(entry) ⇒ EntrySizeError
Returns a new instance of EntrySizeError.
85 86 87 88 |
# File 'lib/zip/errors.rb', line 85 def initialize(entry) super() @entry = entry end |
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
83 84 85 |
# File 'lib/zip/errors.rb', line 83 def entry @entry end |
Instance Method Details
#message ⇒ Object
90 91 92 |
# File 'lib/zip/errors.rb', line 90 def "Entry '#{@entry.name}' should be #{@entry.size}B, but is larger when inflated." end |