class MDT::Commands::Base

A base class for commands

Public Instance Methods

execute(key, modifiers = [], options = {}) click to toggle source

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

   # File lib/mdt/commands/base.rb
16 def execute(key, modifiers = [], options = {})
17   raise MDT::Errors::OverrideNeeded.new('execute')
18 end