Class: Cipher::Rot13
- Inherits:
-
Substitution
- Object
- SimpleCipher
- Substitution
- Cipher::Rot13
- Defined in:
- lib/cipher/rot13.rb
Overview
Rot13
Special version for Internet, using offset of 13.
Instance Attribute Summary
Attributes inherited from Substitution
Instance Method Summary (collapse)
-
- (Rot13) initialize(offset = 13)
constructor
initialize.
Methods inherited from Substitution
Methods inherited from SimpleCipher
Constructor Details
- (Rot13) initialize(offset = 13)
initialize
21 22 23 |
# File 'lib/cipher/rot13.rb', line 21 def initialize(offset = 13) @key = Key::Caesar.new(offset) end |