Class Spec::Mocks::ArgumentMatchers::MatcherMatcher

  1. lib/spec/mocks/argument_matchers.rb
Parent: Object

Methods

public class

  1. new

public instance

  1. ==

Public class methods

new (matcher)
[show source]
# File lib/spec/mocks/argument_matchers.rb, line 102
        def initialize(matcher)
          @matcher = matcher
        end

Public instance methods

== (value)
[show source]
# File lib/spec/mocks/argument_matchers.rb, line 106
        def ==(value)
          @matcher.matches?(value)
        end