Sha256: 6f8f120ef4634b24d6618644a3c9d67c492587c15110c8a8a7a0e7e6496aa8f2

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

require 'rescue/config.rb'
require 'rescue/controller.rb'
require "rescue/controllers/static.rb"
require "rescue/controllers/dynamic.rb"
require 'rescue/exceptions/application_error.rb'
require 'rescue/exceptions/respond_error.rb'

module Rescue
  class Bind
    class << self

      def define_error_class class_name, superclass = nil
        return if Object.const_defined?(class_name)
        Object.const_set(class_name, Class.new(superclass||StandardError))
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rescue-dog-0.2.1 lib/rescue-dog.rb
rescue-dog-0.2.0 lib/rescue-dog.rb