VERSION | = | '0.23' unless self.const_defined?("VERSION") |
extracted from Extlib
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.
@example "Module".constantize #=> Module "Class".constantize #=> Class
ensure that a database exists creates it if it isn‘t already there returns it after it‘s been created
extracted from Extlib
Capitalizes the first word and turns underscores into spaces and strips _id. Like titleize, this is meant for creating pretty output.
@example
"employee_salary" #=> "Employee salary" "author_id" #=> "Author"