mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
10 lines
279 B
Ruby
10 lines
279 B
Ruby
|
direc = File.dirname(__FILE__)
|
||
|
|
||
|
require 'rubygems'
|
||
|
require "#{direc}/../lib/pry"
|
||
|
|
||
|
my_print = proc { |out, value| out.puts "Output is: #{value.inspect}" }
|
||
|
|
||
|
# Start a Pry session using the print object defined in my_print
|
||
|
Pry.start(TOPLEVEL_BINDING, :print => my_print)
|