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:
parent
aec748ff13
commit
77aa452192
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue