Sha256: c370d2dfa64eeb0e1c0ff3b33e391f0576f270f5536dd1e31c8bc2c7859a633e
Contents?: true
Size: 377 Bytes
Versions: 4
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true require 'uuid' require 'dry-types' require 'prolog/dry_types/include_module' # `Types` as a top-level namespace module seems to be a `dry-types` convention. module Types UUID_FORMAT = /\A\h{8}(-\h{4}){3}\-\h{12}\z/ UUID = Types::Strict::String.default { ::UUID.generate } .constrained(format: UUID_FORMAT) end
Version data entries
4 entries across 4 versions & 1 rubygems