Skip to content

Commit

Permalink
reverted lambdas to procs for prompts so that not force users to use …
Browse files Browse the repository at this point in the history
…the nested parameter if not want to
  • Loading branch information
banister committed Dec 11, 2010
1 parent 9f07da8 commit 1d271ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pry.rb
Expand Up @@ -20,15 +20,15 @@ class << self
attr_accessor :output
end

@default_prompt = lambda do |v, nest|
@default_prompt = proc do |v, nest|
if nest == 0
"pry(#{v.inspect})> "
else
"pry(#{v.inspect}):#{nest.inspect}> "
end
end

@wait_prompt = lambda do |v, nest|
@wait_prompt = proc do |v, nest|
if nest == 0
"pry(#{v.inspect})* "
else
Expand Down

0 comments on commit 1d271ba

Please sign in to comment.