Skip to content

Instantly share code, notes, and snippets.

@sorokadima
Created February 11, 2020 08:30
Show Gist options
  • Select an option

  • Save sorokadima/e033df7e9455e959f95a685bf2a5d244 to your computer and use it in GitHub Desktop.

Select an option

Save sorokadima/e033df7e9455e959f95a685bf2a5d244 to your computer and use it in GitHub Desktop.
Ruby snake_case to CamelCase (snake case to camel case)
'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