Class: HealthyRack::VerifyClassDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/healthy_rack/verify_class_definition.rb

Class Method Summary collapse

Class Method Details

.call(claz) ⇒ Object



3
4
5
6
7
8
# File 'lib/healthy_rack/verify_class_definition.rb', line 3

def self.call(claz)
  Object.const_get(claz)
rescue NameError
  raise Errors::UndefinedClassError,
        "#{claz} is not defined. Is corresponding gem installed?"
end