Sha256: 09928c09b3825da35f7bf21be70f193d2c3a31ad89222a17db8d1280315994cc

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

# frozen_string_literal: true

module Kind
  # -- Classes
  [
    ::String, ::Symbol, ::Numeric, ::Integer, ::Float, ::Regexp, ::Time,
    ::Array, ::Range, ::Hash, ::Struct, ::Enumerator, ::Set, ::OpenStruct,
    ::Method, ::Proc,
    ::IO, ::File
  ].each { |klass| Types.add(klass) }

  Types.add(::Queue, name: 'Queue'.freeze)

  # -- Modules
  [
    ::Enumerable, ::Comparable
  ].each { |klass| Types.add(klass) }

  # -- Kind::Of::Maybe

  Types.add(Kind::Maybe::Result, name: 'Maybe'.freeze)
  Types.add(Kind::Maybe::Result, name: 'Optional'.freeze)
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kind-4.1.0 lib/kind/deprecations/built_in_type_checkers.rb
kind-4.0.0 lib/kind/deprecations/built_in_type_checkers.rb