Module: Mathtype3::Snapshot
- Included in:
- RecordChar, RecordEmbell, RecordFont, RecordLine, RecordMatrix, RecordPile, RecordSize, RecordTmpl
- Defined in:
- lib/records3/snapshot.rb
Instance Method Summary collapse
Instance Method Details
#snapshot ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/records3/snapshot.rb', line 5 def snapshot snapshot = BinData::Record::Snapshot.new exposed = self.class.const_get(:EXPOSED_IN_SNAPSHOT) exposed.each do |name| obj = find_obj_for_name(name) if obj snapshot[name] = obj.snapshot if include_obj?(obj) else snapshot[name] = self.send(name) end end snapshot end |