Project

General

Profile

Actions

Feature #14123

closed

Kernel#pp by default

Added by mame (Yusuke Endoh) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
[ruby-core:83850]

Description

Matz, may I commit this? I really want this.

diff --git a/prelude.rb b/prelude.rb
index 7b98e28285..87f49ac9fb 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -141,3 +141,11 @@ def irb
     irb
   end
 end
+
+module Kernel
+  def pp(*objs)
+    undef :pp
+    require 'pp'
+    pp(*objs)
+  end
+end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0