[ create a new paste ] login | about

Link: http://codepad.org/zldHFsDm    [ raw code | output | fork ]

Ruby, pasted on Aug 27:
1
2
3
4
5
6
def rot13(str)
	return str.tr('a-m' 'n-z' 'A-M'  'N-Z','n-z' 'a-m' 'N-Z' 'A-M')
end


puts rot13("Cebtenzzvat Cenkvf vf sha!")


Output:
1
Programming Praxis is fun!


Create a new paste based on this one


Comments: