Created
February 11, 2020 08:30
-
-
Save sorokadima/e033df7e9455e959f95a685bf2a5d244 to your computer and use it in GitHub Desktop.
Ruby snake_case to CamelCase (snake case to camel case)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'my_name'.split('_').collect(&:capitalize).join | |
| # => "MyName" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment