Module: AdsCommon::Utils::String
- Defined in:
- lib/ads_common/utils.rb
Instance Method Summary collapse
-
#lower_camelcase ⇒ Object
Returns the String in lowerCamelCase.
Instance Method Details
#lower_camelcase ⇒ Object
Returns the String in lowerCamelCase.
25 26 27 28 29 |
# File 'lib/ads_common/utils.rb', line 25 def lower_camelcase() result = gsub(/^([A-Z])/) {$1.downcase()} result.gsub!(/(?:_)([a-zA-Z\d])/) {$1.upcase()} return result end |