Class: Pact::KeyNotFound

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/shared/key_not_found.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



3
4
5
# File 'lib/pact/shared/key_not_found.rb', line 3

def == other
  other.is_a? KeyNotFound
end

#empty?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/pact/shared/key_not_found.rb', line 19

def empty?
  true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/pact/shared/key_not_found.rb', line 7

def eql? other
  self == other
end

#to_json(options = {}) ⇒ Object



15
16
17
# File 'lib/pact/shared/key_not_found.rb', line 15

def to_json options = {}
  to_s
end

#to_sObject



11
12
13
# File 'lib/pact/shared/key_not_found.rb', line 11

def to_s
  "<key not found>"
end