Sha256: 5574c9741110851a81ab890e3013d7dfdfd91d5666dc5a7709755068f7e6c37c

Contents?: true

Size: 865 Bytes

Versions: 4

Compression:

Stored size: 865 Bytes

Contents

# frozen_string_literal: true

module Kind
  module STRICT
    [
      :object_is_a,
      :class!,
      :kind_of,
      :module_or_class,
      :module!,
      :not_nil,
      :in!,
      :assert_hash!
    ].each { |method_name| remove_method(method_name) }

    def object_is_a(_kind, value, _label = nil, _expected = nil) # :nodoc:
      value
    end

    def class!(value) # :nodoc:
      value
    end

    def kind_of(_kind, value, _kind_name = nil) # :nodoc:
      value
    end

    def module_or_class(value) # :nodoc:
      value
    end

    def module!(value) # :nodoc:
      value
    end

    def not_nil(value, label) # :nodoc:
      value
    end

    def in!(list, value) # :nodoc:
      value
    end

    def assert_hash!(hash, _options) # :nodoc:
      hash
    end

    def assert_hash!(hash, _options) # :nodoc:
      hash
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kind-5.10.0 lib/kind/strict/disabled.rb
kind-5.9.0 lib/kind/strict/disabled.rb
kind-5.8.1 lib/kind/strict/disabled.rb
kind-5.8.0 lib/kind/strict/disabled.rb