Class: EM::RemoteCall::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/em_remote_call/utils.rb

Class Method Summary collapse

Class Method Details

.constantize(string) ⇒ Object



5
6
7
# File 'lib/em_remote_call/utils.rb', line 5

def self.constantize(string)
  string.split('::').inject(Object){ |klass,str| klass.const_get(str) rescue false }
end