Sha256: ad1105fd9ef0e2fe49a7ac30ceaa968fc983d5b798006e2832f1082903ac8401

Contents?: true

Size: 371 Bytes

Versions: 10

Compression:

Stored size: 371 Bytes

Contents

# frozen_string_literal: true

class BCDD::Result
  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

10 entries across 10 versions & 1 rubygems

Version Path
bcdd-result-1.1.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-1.0.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.13.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.12.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.11.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.10.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.9.1 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.9.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.8.0 lib/bcdd/result/contract/disabled.rb
bcdd-result-0.7.0 lib/bcdd/result/contract/disabled.rb