类 Test::Unit::Assertions::AssertionMessage::MaybeContainer
公共类方法
new(value, &formatter) 点击切换源码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2293 def initialize(value, &formatter) @value = value @formatter = formatter end
公共实例方法
inspect() 点击切换源码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2298 def inspect if @value.is_a?(Array) values = @value.collect do |value| @formatter.call(AssertionMessage.convert(value)) end "[#{values.join(', ')}]" else @formatter.call(AssertionMessage.convert(@value)) end end