method
constantize
constantize(camel_cased_word)
public
Hide source
# File activesupport/lib/active_support/inflector.rb, line 369 def constantize(camel_cased_word) #:nodoc: names = camel_cased_word.split('::') names.shift if names.empty? || names.first.empty? constant = Object names.each do |name| constant = constant.const_get(name, false) || constant.const_missing(name) end constant end