Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/arena/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#constantize ⇒ Object
2 3 4 |
# File 'lib/arena/core_ext/string.rb', line 2 def constantize self.split("::").inject(Module) {|acc, val| acc.const_get(val)} end |