Top Level Namespace

Defined Under Namespace

Modules: PG

Instance Method Summary collapse

Instance Method Details

#camelize(lower_case_and_underscored_word) ⇒ Object

-*- ruby -*-



3
4
5
# File 'ext/errorcodes.rb', line 3

def camelize(lower_case_and_underscored_word)
	lower_case_and_underscored_word.to_s.gsub(/\/(.?)/) { "::" + $1.upcase }.gsub(/(^|_)(.)/) { $2.upcase }
end