Sha256: 1d7c3c6a5f184f4112b4ec74e13fd70aaa37e7f6f75426dc6a1d30b072031df6
Contents?: true
Size: 267 Bytes
Versions: 12
Compression:
Stored size: 267 Bytes
Contents
module Toy module Extensions module Hash def to_store(value, *) Marshal.dump(value) end def from_store(value, *) value.nil? ? store_default : (value.class.is_a?(Hash) ? value : Marshal.load(value)) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems