Sha256: 62ebd37c7f11ae839ebf6526ead41e492ce3dabe04e62370cd41c80f0225260d

Contents?: true

Size: 440 Bytes

Versions: 111

Compression:

Stored size: 440 Bytes

Contents

direc = File.dirname(__FILE__)

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

# Remember, first prompt in array is the main prompt, second is the wait
# prompt (used for multiline input when more input is required)
my_prompt = [ proc { |obj, *| "inside #{obj}> " },
           proc { |obj, *| "inside #{obj}* "} ]
           
# Start a Pry session using the prompt defined in my_prompt
Pry.start(TOPLEVEL_BINDING, :prompt => my_prompt)

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
pry-0.8.4pre1 examples/example_prompt.rb
pry-0.8.4pre1-i386-mswin32 examples/example_prompt.rb
pry-0.8.4pre1-i386-mingw32 examples/example_prompt.rb
pry-0.8.4pre1-java examples/example_prompt.rb
pry-0.8.3 examples/example_prompt.rb
pry-0.8.3-i386-mswin32 examples/example_prompt.rb
pry-0.8.3-i386-mingw32 examples/example_prompt.rb
pry-0.8.3-java examples/example_prompt.rb
pry-0.8.2 examples/example_prompt.rb
pry-0.8.2-i386-mswin32 examples/example_prompt.rb
pry-0.8.2-i386-mingw32 examples/example_prompt.rb
pry-0.8.2-java examples/example_prompt.rb
pry-0.8.1 examples/example_prompt.rb
pry-0.8.1-i386-mswin32 examples/example_prompt.rb
pry-0.8.1-i386-mingw32 examples/example_prompt.rb
pry-0.8.1-java examples/example_prompt.rb
pry-0.8.0 examples/example_prompt.rb
pry-0.8.0-i386-mswin32 examples/example_prompt.rb
pry-0.8.0-i386-mingw32 examples/example_prompt.rb
pry-0.8.0-java examples/example_prompt.rb