Created
July 30, 2010 14:06
-
-
Save seebq/500554 to your computer and use it in GitHub Desktop.
This file contains 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
# 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