Class: MDT::CommandModifiers::Base
- Inherits:
-
Object
- Object
- MDT::CommandModifiers::Base
- Includes:
- Extensible
- Defined in:
- lib/mdt/command_modifiers/base.rb
Overview
A base class for command modifiers
Instance Method Summary collapse
-
#prepend(key, command, options = {}) ⇒ Object
A method that defines how to prepend command modifiers to commands.
Methods included from Extensible
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, = {}) raise MDT::Errors::OverrideNeeded.new('prepend') end |