Sha256: d947e4c3c2a11ee837776bdb43d5821b5b98bd8d22332b9f82f82d74632aabfa

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

module Pact
  class KeyNotFound
    def == other
      other.is_a? KeyNotFound
    end

    def eql? other
      self == other
    end

    def to_s
      "<key not found>"
    end

    def as_json options={}
      to_s
    end

    def to_json options = {}
      as_json.to_json options
    end

    def empty?
      true
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pact-1.1.0.rc2 lib/pact/shared/key_not_found.rb
pact-1.0.38 lib/pact/shared/key_not_found.rb
pact-1.1.0.rc1 lib/pact/shared/key_not_found.rb
pact-1.0.37 lib/pact/shared/key_not_found.rb
pact-1.0.36 lib/pact/shared/key_not_found.rb
pact-1.0.35 lib/pact/shared/key_not_found.rb