Sha256: 5c17b2525125a448f78275a48ba7ad1f34da67e370084da079844994d3ead8e3
Contents?: true
Size: 354 Bytes
Versions: 4
Compression:
Stored size: 354 Bytes
Contents
module Kanade module Converter class String < Base Engine.register_converter!(self) def serialize(term, _) return nil if term.nil? term.to_s end def deserialize(term, _) return nil if term.nil? return term if term.is_a?(String) term.to_s end end end end
Version data entries
4 entries across 4 versions & 1 rubygems