Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/coronate/extensions/string_extention.rb
Instance Method Summary collapse
Instance Method Details
#to_class ⇒ Object
2 3 4 5 6 |
# File 'lib/coronate/extensions/string_extention.rb', line 2 def to_class self.split('::').inject(Object) do |mod, class_name| mod.const_get(class_name) end end |