Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (10 sloc) 0.374 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
direc = File.dirname(__FILE__)

require 'rubygems'
require "#{direc}/../lib/pry"

# Create a StringIO to contain the output data
str_output = StringIO.new

# Start a Pry session on the Fixnum 5 using str_output to store the
# output (not writing to $stdout)
Pry.start(5, :output => str_output)

# Display all the output accumulated during the session
puts str_output.string
Something went wrong with that request. Please try again.