When I\'m running a simple Ruby script, what\'s the easiest way to dump an object\'s fields to the console?
I\'m looking for something similar to PHP\'s print
print
I came across this thread because I was looking for something similar. I like the responses and they gave me some ideas so I tested the .to_hash method and worked really well for the use case too. soo:
object.to_hash