Class: Fidgit::History::Action
Overview
An action in the History. Inherit actions from this in order to add them to a History.
Instance Method Summary collapse
-
#do ⇒ Object
Perform the action.
-
#undo ⇒ Object
Reverse the action.
Instance Method Details
#do ⇒ Object
Perform the action.
12 |
# File 'lib/fidgit/history.rb', line 12 def do; raise NotImplementedError, "#{self.class} does not have a do method defined"; end |
#undo ⇒ Object
Reverse the action.
15 |
# File 'lib/fidgit/history.rb', line 15 def undo; raise NotImplementedError, "#{self.class} does not have an undo method defined"; end |