Sha256: bff47b8ef8c1ff4af6ce6c617ce2d50d1f691a1802894222cc11beae6cf40386
Contents?: true
Size: 601 Bytes
Versions: 52
Compression:
Stored size: 601 Bytes
Contents
require 'scrivito/type_computer' module Scrivito class TypeComputer private def load_class(obj_class_name) return nil if obj_class_name.nil? begin klass = obj_class_name.constantize klass = nil if !inherits_from_base?(klass) rescue NameError klass = ::ShadowClasses.const_get(obj_class_name) klass = nil if !inherits_from_base?(klass) end if !klass klass = ::ShadowClasses.const_get(obj_class_name) klass if inherits_from_base?(klass) else klass end rescue NameError end end end
Version data entries
52 entries across 52 versions & 1 rubygems