Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hw_checker/string.rb
Instance Method Summary collapse
Instance Method Details
#constatize ⇒ Object
2 3 4 5 6 |
# File 'lib/hw_checker/string.rb', line 2 def constatize str_class, const_class = self.split('::'), Object str_class.each { |value| const_class = const_class.const_get(value) } const_class end |