mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
7 lines
308 B
Ruby
7 lines
308 B
Ruby
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
|
|
|
|
# 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)
|