lib/rack/unreloader/reloader.rb
# 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.
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.
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 .
def constantize(s)
        s = s.to_s
        if m = VALID_CONSTANT_NAME_REGEXP.match(s)
          Object.module_eval("::#{m[1]}", __FILE__, __LINE__)
        else
          log("Invalid constant name: #{s}")
        end
      end
def constantize ( s ) s = s . to_s if m = VALID_CONSTANT_NAME_REGEXP . match ( s ) Object . module_eval ( "::#{m[1]}" , __FILE__ , __LINE__ ) else log ( "Invalid constant name: #{s}" ) end end
Tries to find a declared constant with the name specified
in the string.
Tries to find a declared constant with the name specified in the string .
s