Class: Pact::UnexpectedIndex

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/matchers/unexpected_index.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



4
5
6
# File 'lib/pact/matchers/unexpected_index.rb', line 4

def == other
  other.is_a? UnexpectedIndex
end

#to_json(opts = {}) ⇒ Object



12
13
14
# File 'lib/pact/matchers/unexpected_index.rb', line 12

def to_json opts = {}
  to_s
end

#to_sObject



8
9
10
# File 'lib/pact/matchers/unexpected_index.rb', line 8

def to_s
  '<index not to exist>'
end