Sha256: a6fada28ddc72b119b8ca1dd38661254216a44d3299d4a70a9461af81e8a1f6d
Contents?: true
Size: 323 Bytes
Versions: 14
Compression:
Stored size: 323 Bytes
Contents
# frozen_string_literal: true module Paquito class AllowNil def initialize(coder) @coder = Paquito.cast(coder) end def dump(object) return nil if object.nil? @coder.dump(object) end def load(payload) return nil if payload.nil? @coder.load(payload) end end end
Version data entries
14 entries across 14 versions & 1 rubygems