Sha256: 07e617d4b31f7ed7c355b7164b057aad1d759ef7b189342e999227a2db758c6e

Contents?: true

Size: 196 Bytes

Versions: 6

Compression:

Stored size: 196 Bytes

Contents

module Restruct
  module Marshalizable
    
    def serialize(element)
      Marshal.dump element
    end
    
    def deserialize(element)
      Marshal.load element if element
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
restruct-1.0.0 lib/restruct/marshalizable.rb
restruct-0.2.0 lib/restruct/marshalizable.rb
restruct-0.1.0 lib/restruct/marshalizable.rb
restruct-0.0.3 lib/restruct/marshalizable.rb
restruct-0.0.2 lib/restruct/marshalizable.rb
restruct-0.0.1 lib/restruct/marshalizable.rb