Class: String

Inherits:
Object show all
Defined in:
lib/wee/snapshot_ext.rb

Instance Method Summary collapse

Instance Method Details

#restore_snapshot(snap) ⇒ Object



32
33
34
# File 'lib/wee/snapshot_ext.rb', line 32

def restore_snapshot(snap)
  replace(snap)
end

#take_snapshotObject



28
29
30
# File 'lib/wee/snapshot_ext.rb', line 28

def take_snapshot
  dup
end