mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
fixed warning of 'ruby -w' git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ff958cd44e
commit
2ac523a891
4 changed files with 11 additions and 6 deletions
|
|
@ -33,7 +33,7 @@ module IRB
|
|||
attr_reader :eval_history
|
||||
def eval_history=(no)
|
||||
if no
|
||||
if @eval_history
|
||||
if defined?(@eval_history) && @eval_history
|
||||
@eval_history_values.size(no)
|
||||
else
|
||||
@eval_history_values = History.new(no)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue