I met a similar problem like the topic above.
In Ruby 2.3.4, the PP.pp method recursively print a string with hundreds of millions characters so my send mail function get timeout when try to print out an object, for example:
<%= PP.pp(@request.session.instance_variable_get(:@by)) %>
In Ruby 2.2.7 I used exactly the same send mail function and it would print one-level deep of object (similar to #.inspect but in pretty format).After days of investigating the different between PP.pp function in RB 2.3.4 and 2.2.7 I still cant figure out which changelog make this recursion depth become unlimited (?), and If we couldnt fix it, I wonder there’s any way to prettily print one level depth of object without using PP.pp. Thank you.