Module: Moneta::CoreExt::String::Extension
- Defined in:
- lib/moneta/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#camelize ⇒ Object
18 19 20 |
# File 'lib/moneta/core_ext/string.rb', line 18 def camelize defined?(super) ? super : dup.split('_').map(&:capitalize).join end |
#camelize_with_lower ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/moneta/core_ext/string.rb', line 10 def camelize_with_lower str = dup str = str.camelize str[0] = str[0].downcase str end |