Sha256: 9e0a4e2122eeb3ef960c24f70d8547ccd872fe2d39a0874e4be1073a2bab49bc
Contents?: true
Size: 224 Bytes
Versions: 4
Compression:
Stored size: 224 Bytes
Contents
module Brainz class Brainz def self.load(file_name) Marshal.load(File.read(file_name)) end def save(file_name) File.open(file_name, 'wb') { |file| file.write(Marshal.dump(self)) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
brainz-0.2.0 | lib/brainz/loader.rb |
brainz-0.1.3 | lib/brainz/loader.rb |
brainz-0.1.2 | lib/brainz/loader.rb |
brainz-0.1.1 | lib/brainz/loader.rb |