Exception: Archive::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ffi_libarchive/archive.rb

Instance Method Summary collapse

Constructor Details

#initialize(obj = nil) ⇒ Error

noinspection RubyNilAnalysis



141
142
143
# File 'lib/ffi_libarchive/archive.rb', line 141

def initialize(obj = nil)
  super(obj.respond_to?(:error_string) ? obj.error_string : obj)
end