Sha256: bc653ad93d3142729b4197f211810490490a97dbe5a79c475bf35dae5d36cbc3
Contents?: true
Size: 352 Bytes
Versions: 1
Compression:
Stored size: 352 Bytes
Contents
require "json" module Undo module Serializer class Simple def to_json(object) object.to_json end def load_from_json(json) JSON.parse json end def to_xml(object) raise NotImplementedError end def load_from_xml(xml) raise NotImplementedError end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
undo-0.0.1 | lib/undo/serializer/simple.rb |