Skip to content

Commit

Permalink
added: Awesome Print to irb.
Browse files Browse the repository at this point in the history
  • Loading branch information
gf3 committed Sep 22, 2010
1 parent 9099d97 commit de675b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .irbrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
require 'rubygems'
require 'interactive_editor'
require 'ap'

IRB::Irb.class_eval do
def output_value
ap @context.last_value
end
end

0 comments on commit de675b5

Please sign in to comment.