Module: Operation::Rewind

Extended by:
ActiveSupport::Concern
Included in:
OperationBase
Defined in:
lib/flow/operation/rewind.rb

Instance Method Summary collapse

Instance Method Details

#rewindObject



12
13
14
15
16
17
18
# File 'lib/flow/operation/rewind.rb', line 12

def rewind
  run_callbacks(:rewind) do
    run_callbacks(:undo) { undo }
  end

  self
end

#undoObject



20
21
22
# File 'lib/flow/operation/rewind.rb', line 20

def undo
  # abstract method which should be defined by descendants to undo the functionality of the `#behavior` method
end