* lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b80598a926
commit
589169cb78
@ -1,3 +1,7 @@
|
|||||||
|
Fri Apr 15 20:27:16 2016 SHIBATA Hiroshi <hsbt@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined.
|
||||||
|
|
||||||
Fri Apr 15 15:38:58 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
Fri Apr 15 15:38:58 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
* common.mk (benchmark): order options for built-ruby and compare-ruby.
|
* common.mk (benchmark): order options for built-ruby and compare-ruby.
|
||||||
|
@ -27,7 +27,7 @@ module IRB
|
|||||||
IRB.conf[:SAVE_HISTORY]
|
IRB.conf[:SAVE_HISTORY]
|
||||||
end
|
end
|
||||||
|
|
||||||
remove_method :save_history=
|
remove_method :save_history= if respond_to?(:save_history=)
|
||||||
# Sets <code>IRB.conf[:SAVE_HISTORY]</code> to the given +val+ and calls
|
# Sets <code>IRB.conf[:SAVE_HISTORY]</code> to the given +val+ and calls
|
||||||
# #init_save_history with this context.
|
# #init_save_history with this context.
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user