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