module SoberSwag::Serializer
Container module for serializers. The interface for these is described in {SoberSwag::Serializer::Base}.
Public Class Methods
primitive(contained)
click to toggle source
Use a “Primitive” serializer, which *does not* actually do any type-changing, and instead passes in values raw.
@param contained {Class} Dry::Type to use
# File lib/sober_swag/serializer.rb, line 22 def primitive(contained) SoberSwag::Serializer::Primitive.new(contained) end