Created
August 28, 2019 08:10
-
-
Save skalibog/4eb108374cb25b12b859f7cb7f3a7237 to your computer and use it in GitHub Desktop.
Snake case modify
This file contains 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
snake_case_modify = ->(string) { string.nil? ? nil : string&.gsub(/[^a-zA-Z]/, "_")&.downcase } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment