opti/panda_doc

View on GitHub
lib/panda_doc/types.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module PandaDoc
  module Types
    include Dry.Types()

    module Custom
      DocumentStatus = Dry::Types["nominal.string"].constructor(
        Coercions.method(:to_splitted_string)
      )
    end
  end
end