Sha256: 4ca971a99b4158ab5b8a54148f0498d2ac0f3e3a194e37649ee164b20a1f74e2

Contents?: true

Size: 569 Bytes

Versions: 1

Compression:

Stored size: 569 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'

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

1 entries across 1 versions & 1 rubygems

Version Path
rescue-dog-0.3.4 lib/rescue-dog.rb