Sha256: 15210bbdd965c6bd68496369b9d1986288db2326c7892e48987646b768799831

Contents?: true

Size: 383 Bytes

Versions: 2

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

class BCDD::Result::Expectations
  module Contract::Disabled
    extend Contract::Interface

    EMPTY_SET = Set.new.freeze

    def self.allowed_types
      EMPTY_SET
    end

    def self.type?(_type)
      true
    end

    def self.type!(type)
      type
    end

    def self.type_and_value!(_data); end

    private_constant :EMPTY_SET
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bcdd-result-0.6.0 lib/bcdd/result/expectations/contract/disabled.rb
bcdd-result-0.5.0 lib/bcdd/result/expectations/contract/disabled.rb