| Class | RR::WildcardMatchers::HashIncluding |
| In: |
lib/rr/wildcard_matchers/hash_including.rb
|
| Parent: | Object |
| expected_hash | [R] |
# File lib/rr/wildcard_matchers/hash_including.rb, line 6 6: def initialize(expected_hash) 7: @expected_hash = expected_hash.clone 8: end
# File lib/rr/wildcard_matchers/hash_including.rb, line 22
22: def ==(other)
23: return false unless other.is_a?(self.class)
24: self.expected_hash == other.expected_hash
25: end
# File lib/rr/wildcard_matchers/hash_including.rb, line 18
18: def inspect
19: "hash_including(#{expected_hash.inspect})"
20: end