Class: Cipher::SimpleCipher
- Inherits:
-
Object
- Object
- Cipher::SimpleCipher
- Defined in:
- lib/cipher/base.rb
Overview
SimpleCipher
Base class, encode() returns plain text as does decode()
Direct Known Subclasses
DisruptedTransposition, GenericBiCipher, Substitution, Transposition
Instance Method Summary (collapse)
-
- (Object) decode(text)
decode.
-
- (Object) encode(text)
encode.
Instance Method Details
- (Object) decode(text)
decode
25 26 27 |
# File 'lib/cipher/base.rb', line 25 def decode(text) return text end |
- (Object) encode(text)
encode
19 20 21 |
# File 'lib/cipher/base.rb', line 19 def encode(text) return text end |