class Fidgit::History::Action

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

Public Instance Methods

do() click to toggle source

Perform the action.

# File lib/fidgit/history.rb, line 12
def do; raise NotImplementedError, "#{self.class} does not have a do method defined"; end
undo() click to toggle source

Reverse the action.

# File lib/fidgit/history.rb, line 15
def undo; raise NotImplementedError, "#{self.class} does not have an undo method defined"; end