summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-10 05:37:44 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-10 05:37:44 +0000
commit77aa4521921bc05b4a514b83f5caf20b5211ba9e (patch)
tree71cc958071755b45fc4910ea5e7c81fcbf8d9a52 /lib/irb
parentaec748ff1363557f0afb47eac9ad756bd4ed4e97 (diff)
* lib/irb/ruby-lex.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index d8f8a10..4b58ba6 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -183,7 +183,7 @@ class RubyLex
end
private :buf_input
- def set_prompt(p, &block)
+ def set_prompt(p=nil, &block)
p = block if block_given?
if p.respond_to?(:call)
@prompt = p