Introducing the Rot13 gem

require 'rot13'

Rot13.rotate("hello world",3)
#=> "khoor zruog"

Rot13.rotate("khoor zruog" ,-3)
#=> "hello world" 

Resources

Tags:
Source:
1307hrs.txt
Published:
21-07-2012 13:07