Sha256: 86f5223d5aa0dc4d194d7f336498877d47d5dd5577a9a8d323f19917cf9e65a1
Contents?: true
Size: 362 Bytes
Versions: 18
Compression:
Stored size: 362 Bytes
Contents
module SoberSwag module Serializer ## # A class that does *no* serialization: you give it a type, # and it will pass any serialized input on verbatim. class Primitive < Base def initialize(type) @type = type end attr_reader :type def serialize(object, _options = {}) object end end end end
Version data entries
18 entries across 18 versions & 1 rubygems