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

* lib/irb/ruby-lex.rb: typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-06-10 05:37:44 +00:00
parent aec748ff13
commit 77aa452192

View file

@ -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