module GitHeroes::Serializer

Public Instance Methods

dump(data) click to toggle source
# File lib/git_heroes/serializer.rb, line 10
def dump(data)
  Zlib::Deflate.deflate(Marshal.dump(data))
end
load(data) click to toggle source
# File lib/git_heroes/serializer.rb, line 6
def load(data)
  Marshal.load(Zlib::Inflate.inflate(data))
end