1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

reverted lambdas to procs for prompts so that not force users to use the nested parameter if not want to

This commit is contained in:
John Mair 2010-12-12 02:18:51 +13:00
parent 9f07da8ee6
commit 1d271ba47b

View file

@ -20,7 +20,7 @@ module Pry
attr_accessor :output
end
@default_prompt = lambda do |v, nest|
@default_prompt = proc do |v, nest|
if nest == 0
"pry(#{v.inspect})> "
else
@ -28,7 +28,7 @@ module Pry
end
end
@wait_prompt = lambda do |v, nest|
@wait_prompt = proc do |v, nest|
if nest == 0
"pry(#{v.inspect})* "
else