class RubyBox::BoxedError
Public Class Methods
[](class_name)
click to toggle source
# File lib/ruby_box/boxed_error.rb, line 5 def self.[](class_name) boxed_class_name = :"Boxed#{class_name}" if const_defined?(boxed_class_name) && (klass = const_get(boxed_class_name)) < self klass else const_set(boxed_class_name, Class.new(self)) end end