Sha256: d5f9be29bb8791b07cf96c6607ac98e4d84029937034f5a9e3b8ccffa7c71f12

Contents?: true

Size: 205 Bytes

Versions: 6

Compression:

Stored size: 205 Bytes

Contents

require "dry-types"
require_relative "./types/callable"

module Kanji
  module Types
    include Dry::Types.module

    ID = String | Integer
    Email = String.constrained(format: /.+\@.+\..+/)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/types.rb
kanji-web-0.3.0 lib/kanji/types.rb
kanji-web-0.2.2 lib/kanji/types.rb
kanji-web-0.2.1 lib/kanji/types.rb
kanji-web-0.2.0 lib/kanji/types.rb
kanji-web-0.1.0 lib/kanji/types.rb