Method: MiniTest::Assertions#mu_pp
- Defined in:
- lib/minitest/unit.rb
#mu_pp(obj) ⇒ Object
mu_pp gives a human-readable version of obj
. By default #inspect is called. You can override this to use #pretty_print if you want.
66 67 68 69 70 |
# File 'lib/minitest/unit.rb', line 66 def mu_pp obj s = obj.inspect s = s.force_encoding Encoding.default_external if defined? Encoding s end |