safe_constantize()
Instance Public methods
safe_constantize
tries to find a declared constant with the
name specified in the string. It returns nil when the name is not in
CamelCase or is not initialized. See ActiveSupport::Inflector#safe_constantize
1 2 3 | 'Module' .safe_constantize # => Module 'Class' .safe_constantize # => Class 'blargle' .safe_constantize # => nil |
Please login to continue.