Module: Enigma

Defined in:
lib/enigma.rb,
lib/enigma/cli.rb,
lib/enigma/rotor.rb,
lib/enigma/machine.rb,
lib/enigma/version.rb,
lib/enigma/alphabet.rb,
lib/enigma/plugboard.rb,
lib/enigma/reflector.rb

Defined Under Namespace

Classes: CLI, Machine, Plugboard, Reflector, Rotor

Constant Summary collapse

VERSION =
'1.0.2'.freeze
ALPHABET =
Array('A'..'Z')

Class Method Summary collapse

Class Method Details

.convert(string) ⇒ Object


9
10
11
# File 'lib/enigma.rb', line 9

def self.convert(string)
  Machine.new.convert(string)
end