106 107 108 109 110 111 112 113
# File 'lib/bindata/struct.rb', line 106 def snapshot snapshot = Snapshot.new field_names.each do |name| obj = find_obj_for_name(name) snapshot[name] = obj.snapshot if include_obj?(obj) end snapshot end