Sha256: d464ad0be4c07afaed7dba469ea786412515d876461f4c7a0bfa72852ac8cccf

Contents?: true

Size: 601 Bytes

Versions: 5

Compression:

Stored size: 601 Bytes

Contents

# frozen_string_literal: true

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

    def object_is_a(_kind, value, _label = 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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kind-5.6.0 lib/kind/strict/disabled.rb
kind-5.5.0 lib/kind/strict/disabled.rb
kind-5.4.1 lib/kind/strict/disabled.rb
kind-5.4.0 lib/kind/strict/disabled.rb
kind-5.3.0 lib/kind/strict/disabled.rb