ROT13 in Ruby

Ruby’s string lib is pretty cool ok:

"babby".tr("A-Ma-mN-Zn-z","N-Zn-zA-Ma-m")
=> "onool"

Post a comment


(lesstile enabled - surround code blocks with ---)