Skip to content

Instantly share code, notes, and snippets.

@matiaskorhonen
Created July 12, 2010 08:45
Show Gist options
  • Save matiaskorhonen/472266 to your computer and use it in GitHub Desktop.
Save matiaskorhonen/472266 to your computer and use it in GitHub Desktop.
require 'rubygems'
begin
require "ap"
IRB::Irb.class_eval do
def output_value
ap @context.last_value
end
end
rescue LoadError => e
puts "ap gem not found. Try typing 'gem install awesome_print' to get super-fancy output."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment