Last active
December 11, 2015 10:28
-
-
Save epson121/4586613 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
''' | |
Rot13 implementation in ruby | |
21.01.2013. | |
''' | |
def a(s) | |
s.tr("A-MN-Z","N-ZA-M") | |
end | |
p a("ASDDSAZZZ") | |
p a("ABCDEFGHIJKLMNOPQRSTUVWXYZ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment