mirror of
https://github.com/awesome-print/awesome_print
synced 2023-03-27 23:22:34 -04:00
No longer need ap#puts
This commit is contained in:
parent
0fddf1e5b5
commit
ac770dad73
2 changed files with 1 additions and 6 deletions
|
@ -33,10 +33,6 @@ class AwesomePrint
|
|||
Thread.current[AP] ||= []
|
||||
end
|
||||
|
||||
def puts(object)
|
||||
Kernel.puts awesome(object)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue