Class: PolybiusSquare::ConverterEngine
- Inherits:
-
Object
- Object
- PolybiusSquare::ConverterEngine
- Defined in:
- lib/converter_engine.rb
Instance Method Summary collapse
-
#initialize(encoded_string) ⇒ ConverterEngine
constructor
A new instance of ConverterEngine.
Constructor Details
#initialize(encoded_string) ⇒ ConverterEngine
Returns a new instance of ConverterEngine.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/converter_engine.rb', line 3 def initialize(encoded_string) list = %w[ a b c d e f g h i j k l m n o p q r s t u v w x y z ] list.each do |dropped_letter| (1..26).each do |offset| PolybiusSquare::PolybiusSquareProcessor.new(:encoded_string => encoded_string, :list_offset => offset, :dropped_char => dropped_letter).process end end end |