class Test::Unit::Assertions::AssertionMessage::ArrayInspector

Public Class Methods

new(array, inspected_objects) click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1966
def initialize(array, inspected_objects)
  @inspected_objects = inspected_objects
  @array = array.collect do |element|
    Inspector.cached_new(element, @inspected_objects)
  end
end
target?(object) click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1961
def target?(object)
  object.is_a?(Array)
end

Public Instance Methods

each(&block) click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1989
def each(&block)
  @array.each(&block)
end
inspect() click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1973
def inspect
  @array.inspect
end
pretty_print(q) click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1977
def pretty_print(q)
  q.group(1, '[', ']') do
    q.seplist(self) do |v|
      q.pp(v)
    end
  end
end
pretty_print_cycle(q) click to toggle source
# File test-unit-3.3.7/lib/test/unit/assertions.rb, line 1985
def pretty_print_cycle(q)
  @array.pretty_print_cycle(q)
end