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