class Test::Unit::Assertions::AssertionMessage::ArrayInspector
公共类方法
new(array, inspected_objects) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2244 def initialize(array, inspected_objects) @inspected_objects = inspected_objects @array = array.collect do |element| Inspector.cached_new(element, @inspected_objects) end end
target?(object) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2239 def target?(object) object.is_a?(Array) end
公共实例方法
each(&block) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2267 def each(&block) @array.each(&block) end
inspect() 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2251 def inspect @array.inspect end
pretty_print(q) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2255 def pretty_print(q) q.group(1, '[', ']') do q.seplist(self) do |v| q.pp(v) end end end
pretty_print_cycle(q) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/assertions.rb, line 2263 def pretty_print_cycle(q) @array.pretty_print_cycle(q) end