method

message

ruby latest stable - Class: Test::Unit::Assertions

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_1_10) is shown here.

message(msg = nil, *args, &default)
public

No documentation available.

# File lib/test/unit/assertions.rb, line 392
      def message(msg = nil, *args, &default) # :nodoc:
        if Proc === msg
          super(nil, *args) do
            [msg.call, (default.call if default)].compact.reject(&:empty?).join(".\n")
          end
        else
          super
        end
      end