Module: Sand::Util
- Defined in:
- lib/sand/util.rb
Class Method Summary collapse
Class Method Details
.constantize(str = '') ⇒ Object
3 4 5 |
# File 'lib/sand/util.rb', line 3 def self.constantize(str = '') str.split('::').inject(Module) { |a, e| a.const_get(e) } end |