From ac770dad732b6b9780d27aa93f879f20e1ae10d3 Mon Sep 17 00:00:00 2001 From: Mike Dvorkin Date: Mon, 5 Apr 2010 20:50:56 -0700 Subject: [PATCH] No longer need ap#puts --- lib/ap/awesome_print.rb | 4 ---- lib/ap/core_ext/kernel.rb | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/ap/awesome_print.rb b/lib/ap/awesome_print.rb index e8c8b91..f5efe1a 100755 --- a/lib/ap/awesome_print.rb +++ b/lib/ap/awesome_print.rb @@ -33,10 +33,6 @@ class AwesomePrint Thread.current[AP] ||= [] end - def puts(object) - Kernel.puts awesome(object) - end - private diff --git a/lib/ap/core_ext/kernel.rb b/lib/ap/core_ext/kernel.rb index 44a895f..3ba4959 100644 --- a/lib/ap/core_ext/kernel.rb +++ b/lib/ap/core_ext/kernel.rb @@ -12,8 +12,7 @@ module Kernel alias :awesome_inspect :ai def ap(object, options = {}) - ap = AwesomePrint.new(options) - ap.puts object.ai + puts object.ai(options) end alias :awesome_print :ap