method

__call

ruby latest stable - Class: MiniTest::Mock

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.

__call(name, data)
public

No documentation available.

# File lib/minitest/mock.rb, line 67
    def __call name, data # :nodoc:
      case data
      when Hash then
        "#{name}(#{data[:args].inspect[1..-2]}) => #{data[:retval].inspect}"
      else
        data.map { |d| __call name, d }.join ", "
      end
    end