Top Level Namespace

Defined Under Namespace

Modules: PG

Constant Summary collapse

PGError =

Backward-compatible aliase

PG::Error
PGresult =

Backward-compatible alias

PG::Result
PGconn =

Backward-compatible alias

PG::Connection

Instance Method Summary collapse

Instance Method Details

#camelize(lower_case_and_underscored_word) ⇒ Object



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