Created
December 13, 2016 22:35
-
-
Save kml/33de8a7dc8d2fcfa3483c1614936aba5 to your computer and use it in GitHub Desktop.
Pry-based pretty-printer for Ruby objects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "pry" | |
def pp(value) | |
pager = Pry::Pager::NullPager.new(STDOUT) | |
Pry::ColorPrinter.pp(value, pager, Pry::Terminal.width! - 1) | |
end | |
alias ap pp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment