Skip to content

Instantly share code, notes, and snippets.

@bosko
Created October 3, 2014 05:24
Show Gist options
  • Save bosko/1a3876b1cd3232a7ff67 to your computer and use it in GitHub Desktop.
Save bosko/1a3876b1cd3232a7ff67 to your computer and use it in GitHub Desktop.
Enabling tabular arrays print with Hirb in Pry
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