Sha256: eda8c125bd3d6313d718a70e5a73ba5a9168f8c656fdee65ab4094eb640289b0

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

require 'rescue/config.rb'
require 'rescue/controller.rb'
require "rescue/controllers/static.rb"
require "rescue/controllers/dynamic.rb"
require "rescue/controllers/action.rb"
require "rescue/controllers/flash.rb"
require 'rescue/exceptions/application_error.rb'
require 'rescue/exceptions/respond_error.rb'
require 'rescue/errors.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

4 entries across 4 versions & 1 rubygems

Version Path
rescue-dog-0.3.9 lib/rescue-dog.rb
rescue-dog-0.3.8 lib/rescue-dog.rb
rescue-dog-0.3.7 lib/rescue-dog.rb
rescue-dog-0.3.5 lib/rescue-dog.rb