Module: Pipes::Utils
- Defined in:
- lib/pipes/utils.rb
Class Method Summary collapse
Class Method Details
.constantize(str) ⇒ Object
3 4 5 |
# File 'lib/pipes/utils.rb', line 3 def self.constantize(str) str.split('::').reject(&:empty?).inject(Kernel) { |const, name| const.const_get(name) } end |