Sha256: 6e35eb6028639dc8a149f5baaf7c804832004ee46ff221c8d6afed1af48d883b

Contents?: true

Size: 193 Bytes

Versions: 1

Compression:

Stored size: 193 Bytes

Contents

require 'json'

module Undo
  module Container
    class Json
      def pack(object)
        object.to_json
      end

      def unpack(json)
        JSON.load json
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
undo-1.0.0 lib/undo/container/json.rb