When using something like object.methods.sort.to_yaml I’d like to have irb interpret the \n characters rather than print them.
I currently get the following output:
--- \n- '&'\n- '*'\n- +\n- '-'\n- '<<'\n- <=>\n ...
What I’d like is something similar to this:
--- - '&' - '*' - + - '-' - '<<' - <=>
Is this possible? Is there another method I can be calling which will interpret the string perhaps?
Prefix your output with
puts: