Class: Cipher::Caesar
- Inherits:
-
Substitution
- Object
- SimpleCipher
- Substitution
- Cipher::Caesar
- Defined in:
- lib/cipher/caesar.rb
Overview
Caesar
Caesar cipher, monoalphabetic substitution, offset is 3
Instance Attribute Summary
Attributes inherited from Substitution
Instance Method Summary (collapse)
-
- (Caesar) initialize(offset = 3)
constructor
initialize.
Methods inherited from Substitution
Methods inherited from SimpleCipher
Constructor Details
- (Caesar) initialize(offset = 3)
initialize
21 22 23 |
# File 'lib/cipher/caesar.rb', line 21 def initialize(offset = 3) @key = Key::Caesar.new(offset) end |