Class: Pact::Matchers::NoDiffAtIndex

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



13
14
15
# File 'lib/pact/matchers/no_diff_at_index.rb', line 13

def == other
  other.is_a? NoDiffAtIndex
end

#to_json(options = {}) ⇒ Object



5
6
7
# File 'lib/pact/matchers/no_diff_at_index.rb', line 5

def to_json options = {}
  to_s.inspect
end

#to_sObject



9
10
11
# File 'lib/pact/matchers/no_diff_at_index.rb', line 9

def to_s
  '<no difference at this index>'
end