Last active
December 17, 2015 16:49
-
-
Save ravelll/5641031 to your computer and use it in GitHub Desktop.
ruby on rails tutorial Chapter4 exercise2
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 shuffle | |
self.split('').shuffle.join | |
end | |
end | |
puts "asdffdsa".shuffle |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment