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:
parent
9f07da8ee6
commit
1d271ba47b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue