message (Spec::Matchers::MatcherDSL)

    # File lib/merb-core/test/test_ext/rspec.rb, line 142
          def self.message(&block)
            class_eval do
              def failure_message
                generic_message(@object, @expected_value, nil)
              end

              def negative_failure_message
                generic_message(@object, @expected_value, " not")
              end
            end

            define_method(:proxy_generic_message, &block)

            ar = block.arity

            define_method(:generic_message) do |object, expected, not_string|
              if ar == 3
                proxy_generic_message(not_string, object, expected)
              else
                proxy_generic_message(not_string, object)
              end
            end
          end