2011-01-20 09:41:41 -05:00
|
|
|
direc = File.dirname(__FILE__)
|
|
|
|
|
|
|
|
require 'rubygems'
|
|
|
|
require "#{direc}/../lib/pry"
|
|
|
|
|
|
|
|
my_hooks = {
|
2011-03-05 09:17:54 -05:00
|
|
|
:before_session => proc { |out, target| out.puts "Opening #{target.eval('self')}." },
|
|
|
|
:after_session => proc { |out, target| out.puts "Closing #{target.eval('self')}." }
|
2011-01-20 09:41:41 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
# Start a Pry session using the hooks hash defined in my_hooks
|
|
|
|
Pry.start(TOPLEVEL_BINDING, :hooks => my_hooks)
|