Skip to content

Instantly share code, notes, and snippets.

@seebq
Created July 30, 2010 14:06
Show Gist options
  • Save seebq/500554 to your computer and use it in GitHub Desktop.
Save seebq/500554 to your computer and use it in GitHub Desktop.
# customized ~/.irbrc file
# mate ~/.irbrc
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