Module: Callme::ConstLoaders::ActiveSupport

Defined in:
lib/callme/const_loaders/active_support.rb

Class Method Summary collapse

Class Method Details

.load_const(const_name) ⇒ Object



3
4
5
6
# File 'lib/callme/const_loaders/active_support.rb', line 3

def self.load_const(const_name)
  return const_name if const_name.is_a?(Class)
  ::ActiveSupport::Inflector.constantize(const_name)
end