2011-06-02 15:22:59 +00:00
|
|
|
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
|
2011-01-20 14:41:41 +00:00
|
|
|
|
|
|
|
# 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
|