Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/utilities/string.rb
Overview
Extend string class to PascalCase* snake_cased_strings. Monkey patching that’s only needed in this file so far. Move it to utilitiies? Other?
-
It’s Pascal case, not camel case. It starts with a capital.
Instance Method Summary collapse
Instance Method Details
#pascal_case ⇒ Object
9 10 11 |
# File 'lib/utilities/string.rb', line 9 def pascal_case split('_').map(&:capitalize).join end |