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] ||= []
|
Thread.current[AP] ||= []
|
||||||
end
|
end
|
||||||
|
|
||||||
def puts(object)
|
|
||||||
Kernel.puts awesome(object)
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,7 @@ module Kernel
|
||||||
alias :awesome_inspect :ai
|
alias :awesome_inspect :ai
|
||||||
|
|
||||||
def ap(object, options = {})
|
def ap(object, options = {})
|
||||||
ap = AwesomePrint.new(options)
|
puts object.ai(options)
|
||||||
ap.puts object.ai
|
|
||||||
end
|
end
|
||||||
alias :awesome_print :ap
|
alias :awesome_print :ap
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue