Last active
August 17, 2018 19:33
-
-
Save flanger001/2164774d7f2e2d97c7dc70b5bf4e8e0a to your computer and use it in GitHub Desktop.
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
class String | |
def spongebob | |
each_char.map { |c| rand > 0.5 ? c.swapcase : c }.join | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment