阅读背景:

Ruby on Rails:对变量hash_set的打印效果很好。有办法在控制台打印漂亮的。inpsect。

来源:互联网 

I findy myself doing a lot of puts .inpsect s in my functional testing to make sure I know how the data is formatted... but hashes are hard to read when there is no new lines after each entry in a hash object. Is there anyway, maybe a gem?, to pretty print hashes?I findy myself doing a lot of puts .inpsect s i




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: