Class: MDT::Commands::Base

Inherits:
Object
  • Object
show all
Includes:
Extensible
Defined in:
lib/mdt/commands/base.rb

Overview

A base class for commands

Instance Method Summary collapse

Methods included from Extensible

included

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 = [], options = {})
  raise MDT::Errors::OverrideNeeded.new('execute')
end