Sha256: c42f6fa8d2da50a1062fc938302e7649661be37e61b625cc0052f4d4f5ff4159

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

module Cosing
  module Types
    include Dry.Types()

    CasNumber = Types::String.constrained(format: /\A\d{2,7}-\d{2}-\d\z/)
    EinecsNumber = Types::String.constrained(format: /\A\d{3}-\d{3}-\d\z/)
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cosing-0.3.2 lib/cosing/types.rb
cosing-0.3.1 lib/cosing/types.rb
cosing-0.3.0 lib/cosing/types.rb
cosing-0.2.1 lib/cosing/types.rb
cosing-0.2.0 lib/cosing/types.rb
cosing-0.1.2 lib/cosing/types.rb
cosing-0.1.1 lib/cosing/types.rb
cosing-0.1.0 lib/cosing/types.rb