pry--pry/examples/example_input.rb

8 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)