lib/surrounded/context.rb in surrounded-0.9.10 vs lib/surrounded/context.rb in surrounded-0.9.11
- old
+ new
@@ -1,6 +1,7 @@
require 'set'
+require 'surrounded/exceptions'
require 'surrounded/context/role_map'
require 'surrounded/context/role_builders'
require 'surrounded/context/initializing'
require 'surrounded/context/forwarding'
require 'surrounded/context/trigger_controls'
@@ -29,23 +30,12 @@
include trigger_mod
extend TriggerControls
}
- define_exceptions(base)
end
private
-
- def self.define_exceptions(klass)
- self.constants.select{|const|
- self.const_get(const) < ::StandardError
- }.map{|exception|
- unless klass.const_defined?(exception)
- klass.const_set(exception, Class.new(self.const_get(exception)))
- end
- }
- end
# Set the default type of implementation for role methods for all contexts.
def self.default_role_type
@default_role_type ||= :module
end
\ No newline at end of file