Sha256: af1070551c2c0668be6db5c292e148c686f8f1ac3518b4b0714636a558d71e22
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
module Cloudist module Encoding def encode(message) Marshal.dump(message) end def decode(message) raise ArgumentError, "First argument can't be nil" if message.nil? return message unless message.is_a?(String) Marshal.load(message) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloudist-0.4.1 | lib/cloudist/encoding.rb |