Created
November 14, 2014 07:18
-
-
Save fuzzygroup/3de90bc257bfb29a5127 to your computer and use it in GitHub Desktop.
irbrc
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
require "rubygems" | |
# require 'awesome_print' | |
# require "ap" | |
# IRB::Irb.class_eval do | |
# def output_value | |
# ap @context.last_value | |
# end | |
# end | |
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