Created
March 30, 2015 05:11
-
-
Save makimoto/ea485f91e7d8aa723f1e 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
def rot13(str) | |
str.tr("a-zA-Z", "n-za-mN-ZA-M") | |
end | |
ARGF.each do |line| | |
puts rot13(line) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment