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



60
61
62
# File 'lib/wee/state.rb', line 60

def restore_snapshot(snap)
  replace(snap)
end

#take_snapshotObject



56
57
58
# File 'lib/wee/state.rb', line 56

def take_snapshot
  dup
end