Parent

Methods

FlexMock::HashMatcher

                                                                  

Match only things where the block evaluates to true.

Public Class Methods

new(hash) click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 59
59:     def initialize(hash)
60:       @hash = hash
61:     end

Public Instance Methods

===(target) click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 62
62:     def ===(target)
63:       @hash.all? { |k, v| target[k] == v }
64:     end
inspect() click to toggle source
    # File lib/flexmock/argument_matchers.rb, line 65
65:     def inspect
66:       "hsh(#{@hash.inspect})"
67:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.