Class: Test::Unit::Assertions::AssertionMessage::Inspector
- Inherits:
-
Object
- Object
- Test::Unit::Assertions::AssertionMessage::Inspector
- Defined in:
- lib/test/unit/assertions.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ Inspector
constructor
A new instance of Inspector.
- #inspect ⇒ Object
- #native_inspect ⇒ Object
- #pretty_print(q) ⇒ Object
- #pretty_print_cycle(q) ⇒ Object
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
#inspect ⇒ Object
1534 1535 1536 |
# File 'lib/test/unit/assertions.rb', line 1534 def inspect @inspect_target.inspect end |
#native_inspect ⇒ Object
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 |