Module: Wee::DupReplaceSnapshotMixin

Included in:
Array, Hash, String
Defined in:
lib/wee/state.rb

Overview

class State

Instance Method Summary collapse

Instance Method Details

#restore_snapshot(snap) ⇒ Object



43
44
45
# File 'lib/wee/state.rb', line 43

def restore_snapshot(snap)
  replace(snap)
end

#take_snapshotObject



39
40
41
# File 'lib/wee/state.rb', line 39

def take_snapshot
  dup
end