Class: EnigmaRuby::Command
- Inherits:
-
Object
- Object
- EnigmaRuby::Command
- Defined in:
- lib/enigma_ruby/commands/command.rb
Direct Known Subclasses
AdvanceRotorsCommand, EncodeRotorBackwardCommand, EncodeRotorForwardCommand, ReflectCommand, SwapPlugboardCommand
Instance Method Summary collapse
Instance Method Details
#execute(context) ⇒ Object
3 4 5 |
# File 'lib/enigma_ruby/commands/command.rb', line 3 def execute(context) raise NotImplementedError, 'Subclasses must implement execute(context)' end |