Exception: Archive::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Archive::Error
- Defined in:
- lib/ffi-libarchive/archive.rb
Instance Method Summary collapse
-
#initialize(archive) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(archive) ⇒ Error
Returns a new instance of Error.
322 323 324 325 326 327 328 |
# File 'lib/ffi-libarchive/archive.rb', line 322 def initialize(archive) if archive.is_a? String super archive else super C.archive_error_string(archive).to_s end end |