Method: Backup::NestedExceptions.included

Defined in:
lib/backup/errors.rb

.included(klass) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/backup/errors.rb', line 9

def self.included(klass)
  klass.extend Module.new {
    def wrap(wrapped_exception, msg = nil)
      new(msg, wrapped_exception)
    end
  }
end