Sha256: 80e7c0ccfd120081e12eeb31a0c263c6624e987c88fadac77213029e17165e1d
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require 'hashmodel' # puts hm # data = Marshal.dump(hm) #File.new("dummy.hashmodel", "r") hashmodel_file = "widget.hashmodel" hm = HashModel.new hm.add(:name=>"Phish") File.open(hashmodel_file, "w"){|file| file.write(Marshal.dump(HashModel.new))} unless File.exist?(hashmodel_file) hmo = Marshal.load(File.open(hashmodel_file, "r")) puts hmo.class puts hmo # hm.add(:name=>"Widgee 5") # put hm
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
widget-0.0.1 | _test/marshal.rb |