Class: Cipher::SimpleCipher

Inherits:
Object
  • Object
show all
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)

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