class String
Public Instance Methods
constantize()
click to toggle source
# File lib/dm-translatable.rb, line 5 def constantize self.split("::").tap do |s| s.shift if s.first.empty? end.inject(Module) {|acc, val| acc.const_get(val)} end