class WebMock::Matchers::HashArgumentMatcher

def self.from_rspec_matcher(matcher)

def self.from_rspec_matcher(matcher)
  new(matcher.instance_variable_get(:@expected))
end

def ==(_actual, &block)

def ==(_actual, &block)
  @expected.all?(&block)
rescue NoMethodError
  false
end

def initialize(expected)

def initialize(expected)
  @expected = Hash[WebMock::Util::HashKeysStringifier.stringify_keys!(expected, deep: true).sort]
end