Match only things where the block evaluates to true.
Methods
Public Class methods
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 59
59: def initialize(hash)
60: @hash = hash
61: end
Public Instance methods
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 62
62: def ===(target)
63: @hash.all? { |k, v| target[k] == v }
64: end
[ show source ]
# File lib/flexmock/argument_matchers.rb, line 65
65: def inspect
66: "hsh(#{@hash.inspect})"
67: end