class Pact::Matchers::BaseDifference
Attributes
actual[R]
expected[R]
message[RW]
Public Class Methods
new(expected, actual, message = nil)
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 11 def initialize expected, actual, message = nil @expected = expected @actual = actual @message = message end
Public Instance Methods
==(other)
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 33 def == other other.class == self.class && other.expected == expected && other.actual == actual end
any?()
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 17 def any? true end
empty?()
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 21 def empty? false end
to_json(options = {})
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 25 def to_json options = {} as_json.to_json(options) end
to_s()
click to toggle source
# File lib/pact/matchers/base_difference.rb, line 29 def to_s as_json.to_s end