Sha256: 460e503751bfc78bd906254f4db3041521b2a212257e5ec51d5f783120c22a53

Contents?: true

Size: 611 Bytes

Versions: 3

Compression:

Stored size: 611 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/parameter.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

3 entries across 3 versions & 1 rubygems

Version Path
rescue-dog-0.3.2 lib/rescue-dog.rb
rescue-dog-0.3.1 lib/rescue-dog.rb
rescue-dog-0.3.0 lib/rescue-dog.rb