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