Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/heckle.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#to_class ⇒ Object
9 10 11 |
# File 'lib/heckle.rb', line 9 def to_class split(/::/).inject(Object) { |klass, name| klass.const_get(name) } end |