Class: Fidgit::History::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/fidgit/history.rb

Overview

An action in the History. Inherit actions from this in order to add them to a History.

Instance Method Summary collapse

Instance Method Details

#doObject

Perform the action.

Raises:

  • (NotImplementedError)


12
# File 'lib/fidgit/history.rb', line 12

def do; raise NotImplementedError, "#{self.class} does not have a do method defined"; end

#undoObject

Reverse the action.

Raises:

  • (NotImplementedError)


15
# File 'lib/fidgit/history.rb', line 15

def undo; raise NotImplementedError, "#{self.class} does not have an undo method defined"; end