How do I dump an object's fields to the console?

后端 未结 9 2275
谎友^
谎友^ 2020-12-12 10:09

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

9条回答
提交回复
热议问题