Object
# File lib/rr/wildcard_matchers/satisfy.rb, line 6 def initialize(expectation_proc) @expectation_proc = expectation_proc end
# File lib/rr/wildcard_matchers/satisfy.rb, line 19 def ==(other) return false unless other.is_a?(self.class) self.expectation_proc == other.expectation_proc end
# File lib/rr/wildcard_matchers/satisfy.rb, line 15 def inspect "satisfy {block}" end
# File lib/rr/wildcard_matchers/satisfy.rb, line 10 def wildcard_match?(other) return true if self == other !!expectation_proc.call(other) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.