Class: Struct
Overview
Struct snapshots look a bit different since they don’t use instance variables.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#apply_snapshot(snap) ⇒ Object
91 92 93 |
# File 'lib/carat/snapshot.rb', line 91 def apply_snapshot(snap) snap.each_pair{ |k,v| send( "#{k}=", v ) } end |