class Rot13::Cipher

The actual Cipher.

Public Class Methods

rot13(str) click to toggle source

Apply the ROT13 cipher to a string.

@param [String] str the string to cipher

# File lib/rot13/cipher.rb, line 7
def self.rot13(str)
  str.tr 'A-Za-z', 'N-ZA-Mn-za-m'
end