diff options
-rw-r--r-- | lib/pp.rb | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -61,6 +61,15 @@ require 'prettyprint' # Tanaka Akira <[email protected]> class PP < PrettyPrint # Outputs +obj+ to +out+ in pretty printed format of # +width+ columns in width. # @@ -68,7 +77,7 @@ class PP < PrettyPrint # If +width+ is omitted, 79 is assumed. # # PP.pp returns +out+. - def PP.pp(obj, out=$>, width=79) q = PP.new(out, width) q.guard_inspect_key {q.pp obj} q.flush |