ROT13 in Ruby
Ruby’s string lib is pretty cool ok:
"babby".tr("A-Ma-mN-Zn-z","N-Zn-zA-Ma-m")
=> "onool"
Ruby’s string lib is pretty cool ok:
"babby".tr("A-Ma-mN-Zn-z","N-Zn-zA-Ma-m")
=> "onool"
Wednesday, December 19, 2007
0 Comments