Class: Test::Unit::Assertions::AssertionMessage::Inspector

Inherits:
Object
  • Object
show all
Defined in:
lib/test/unit/assertions.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Inspector

Returns a new instance of Inspector.



1528
1529
1530
1531
# File 'lib/test/unit/assertions.rb', line 1528

def initialize(object)
  @object = object
  @inspect_target = inspect_target
end

Instance Method Details

#inspectObject



1534
1535
1536
# File 'lib/test/unit/assertions.rb', line 1534

def inspect
  @inspect_target.inspect
end

#native_inspectObject



1533
# File 'lib/test/unit/assertions.rb', line 1533

alias_method :native_inspect, :inspect

#pretty_print(q) ⇒ Object



1538
1539
1540
# File 'lib/test/unit/assertions.rb', line 1538

def pretty_print(q)
  @inspect_target.pretty_print(q)
end

#pretty_print_cycle(q) ⇒ Object



1542
1543
1544
# File 'lib/test/unit/assertions.rb', line 1542

def pretty_print_cycle(q)
  @inspect_target.pretty_print_cycle(q)
end