matches (Spec::Matchers::MatcherDSL)

    # File lib/merb-core/test/test_ext/rspec.rb, line 105
          def self.matches(&block)
            define_method(:matches_proxy, &block)

            define_method(:matches?) do |object|
              @object = object
              if block.arity == 2
                matches_proxy(@object, @expected_value)
              else
                matches_proxy(@object)
              end
            end
          end