Class: EnigmaRuby::ReflectCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/enigma_ruby/commands/reflect_command.rb

Instance Method Summary collapse

Instance Method Details

#execute(context) ⇒ Object



3
4
5
# File 'lib/enigma_ruby/commands/reflect_command.rb', line 3

def execute(context)
  context[:encoded_char] = Reflector.reflect(context[:encoded_char])
end