Sha256: afcb10e1bd04dda8c0a457b1fdec8aebaefb3b1ab7cfa41296160eb47901fd7d

Contents?: true

Size: 273 Bytes

Versions: 4

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module Kind
  module String
    extend self, TypeChecker

    def kind; ::String; end

    def value_or_empty(arg)
      KIND.value(self, arg, Empty::STRING)
    end
  end

  def self.String?(*values)
    KIND.of?(::String, values)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kind-5.1.0 lib/kind/core/type_checkers/ruby/string.rb
kind-5.0.0 lib/kind/type_checkers/core/string.rb
kind-4.1.0 lib/kind/type_checkers/core/string.rb
kind-4.0.0 lib/kind/type_checkers/core/string.rb