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 that contains the input data
|
|
|
|
str_input = StringIO.new("puts 'hello world!'\nputs \"I am in \#{self}\"\nexit")
|
|
|
|
|
|
|
|
# Start a Pry session on the Fixnum 5 using the input data in str_input
|
|
|
|
Pry.start(5, :input => str_input)
|