lib/poolparty/core/string.rb
def constantize(mod=Object)
    camelcased_word = camelcase
    begin
      mod.module_eval(camelcased_word, __FILE__, __LINE__)
    rescue NameError
      puts "#{camelcased_word} is not defined."
      nil
    end
  end
# Constantize tries to find a declared constant with the name specified
# in the string. It raises a NameError when the name is not in CamelCase
# or is not initialized.
#
# Examples
#   "Module".constantize #=> Module
#   "Class".constantize #=> Class
Constantize tries to find a declared constant with the name specified
in the string. It raises a NameError when the name is not in CamelCase
or is not initialized.

Examples
"Module".constantize #=> Module
"Class".constantize #=> Class
Constantize tries to find a declared constant with the name specified in the string . It raises a NameError when the name is not in CamelCase or is not initialized . Examples " Module " . constantize # = > Module " Class " . constantize # = > Class
def constantize(mod=Object)
    camelcased_word = camelcase
    begin
      mod.module_eval(camelcased_word, __FILE__, __LINE__)
    rescue NameError
      puts "#{camelcased_word} is not defined."
      nil
    end
  end
def constantize ( mod = Object ) camelcased_word = camelcase begin mod . module_eval ( camelcased_word , __FILE__ , __LINE__ ) rescue NameError puts "#{camelcased_word} is not defined." nil end end
Constantize tries to find a declared constant with the name specified
in the string.
Constantize tries to find a declared constant with the name specified in the string .
mod