Ruby On rot encode

by Sam Figueroa, January 19, 2010 06:49

You know what bob. You're r...

45596033957b2b6d7ef8fe6545e0b7e7 Talk
1
2
3
def rot_encode(s, offset=2)
   s.split('').map{ |char| (char.ord + offset).chr }.join
end  

Ruby rot encode

by Sam Figueroa, January 17, 2010 11:44, 5 refactorings, tagged with rot, rotation, encode, strings

Rotation encoding with vari...

45596033957b2b6d7ef8fe6545e0b7e7 Talk