Class: MDT::Commands::Base
- Inherits:
-
Object
- Object
- MDT::Commands::Base
- Includes:
- Extensible
- Defined in:
- lib/mdt/commands/base.rb
Overview
A base class for commands
Instance Method Summary collapse
-
#execute(key, modifiers = [], options = {}) ⇒ Object
A method that defines how to execute a command and how to apply command modifiers.
Methods included from Extensible
Instance Method Details
#execute(key, modifiers = [], options = {}) ⇒ Object
A method that defines how to execute a command and how to apply command modifiers. Raises MDT::Errors::OverrideNeeded. Arguments:
-
key- a key identifier of a particular command -
modifiers- an array of command modifier configurations - each configuration is a Hash that includes modifier type and modifier options -
options- options for command as a Hash
16 17 18 |
# File 'lib/mdt/commands/base.rb', line 16 def execute(key, modifiers = [], = {}) raise MDT::Errors::OverrideNeeded.new('execute') end |