method
pretty_print
![Some documentation Importance_1](https://d2vfyqvduarcvs.cloudfront.net/images/importance_1.png?1349367920)
Register or
log in
to add new notes.
hellosys -
January 28, 2015 - (v1_8_6_287 - v1_9_3_392)
![Default_avatar_30](https://www.gravatar.com/avatar/5d398683a20fe23e0a5c01aaad8b1915?size=30&default=http://apidock.com/images/default_avatar_30.png)
1 thank
Feature
A default pretty printing method for general objects. It calls pretty_print_instance_variables to list instance variables.
If self has a customized (redefined) inspect method, the result of self.inspect is used but it obviously has no line break hints.
This module provides predefined pretty_print methods for some of the most commonly used built-in classes for convenience.