Class: MDT::CommandModifiers::Base

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

Overview

A base class for command modifiers

Instance Method Summary collapse

Methods included from Extensible

included

Instance Method Details

#prepend(key, command, options = {}) ⇒ Object

A method that defines how to prepend command modifiers to commands. Raises MDT::Errors::OverrideNeeded. Arguments:

  • key - a key identifier of a particular command modifier

  • command - a command to apply command modifier on

  • options - options for modifier as a Hash



16
17
18
# File 'lib/mdt/command_modifiers/base.rb', line 16

def prepend(key, command, options = {})
  raise MDT::Errors::OverrideNeeded.new('prepend')
end