Last active
August 8, 2019 14:45
-
-
Save seanmcmills/29d06568da16ae0c54a72c9626bcc62f to your computer and use it in GitHub Desktop.
Change Sentence into a Mocking SpongeBob Sentence!
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
def mockingspongebob str | |
str.split.map{|w|w.split('').map{|c|c.send(%w(upcase downcase).sample)}.join}.join(' ') | |
end | |
# cHAnge sentEnCE inTO a mocKING spOnGEBob SENTEnce! | |
# ChANGe senTENce INto A moCKing SPongEBOb senTenCe! | |
# CHaNgE SENtenCe IntO A MocKING sPongebOB sENTEnCe! | |
# ChanGE sEnTenCE INTO a MoCKIng Spongebob SENtEnCe! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment