Skip to content

Instantly share code, notes, and snippets.

@rgabo
Created April 8, 2014 09:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rgabo/10105666 to your computer and use it in GitHub Desktop.
Save rgabo/10105666 to your computer and use it in GitHub Desktop.
Pry <3 Hirb
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