I understand that one can use something like object.inspect
to view an object's state in the console (or to whichever output one is using), but does there exist a built-in method or a gem which provides a method to print out the object's state in an easy-to-read fashion?
Example:
> some_blog_post_object.beautiful_inspect
=> "title: 'Some Amazing Title'
subtitle: 'Hopefully I'm not down-voted for n00b-ness'
image: 'some_image.jpg'
.
.
.
"
Or something along these lines.