Exception: RubyBox::BoxedError
- Defined in:
- lib/ruby_box/boxed_error.rb
Class Method Summary collapse
Class Method Details
.[](class_name) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# 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 |