Created
October 3, 2014 05:24
-
-
Save bosko/1a3876b1cd3232a7ff67 to your computer and use it in GitHub Desktop.
Enabling tabular arrays print with Hirb in Pry
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 'hirb' | |
Hirb.enable | |
old_print = Pry.config.print | |
Pry.config.print = proc do |output, value| | |
Hirb::View.view_or_page_output(value) || old_print.call(output, value) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment