The Cusp of Helix

Intact Case リファレンス
[camelize]

(string) camelize (delimiter = '_')

snake_case や train-case など、区切り子表記された複合語の文字列を camelCase に変換します。

Parameters:

nametypedefaultcaption
delimiterstring'_'Delimiter.

Returns:

  • (string) — camelCase string.

Author:

  • StewEucen

Since:

  • Version 1.0.0

Aliases:

  • camel_case
  • nerd_caps

Examples:

"snake_case".camelize() #=> "snakeCase" "get_utc__day".camelize() #=> "getUTCDay" "ui__view".camelize() #=> "ui_View" "xml__html__request".camelize() #=> "xml_HTMLRequest"