Class: EM::RemoteCall::Utils
- Inherits:
-
Object
- Object
- EM::RemoteCall::Utils
- 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 |