diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 11:27:38 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 11:27:38 +0000 |
commit | 589169cb78ca8dfaaa3d9cacf71dc34bd81265f2 (patch) | |
tree | 883c0e7420bd029027f2d3ab61c86a23b0697550 | |
parent | b80598a92644abde7a38ef959f2c85f05d5ce381 (diff) |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/irb/ext/save-history.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Apr 15 20:27:16 2016 SHIBATA Hiroshi <[email protected]> + + * lib/irb/ext/save-history.rb: Fix NoMethodError when method is not defined. + Fri Apr 15 15:38:58 2016 NARUSE, Yui <[email protected]> * common.mk (benchmark): order options for built-ruby and compare-ruby. diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index d6e9be7415..ab64cf543d 100644 --- a/lib/irb/ext/save-history.rb +++ b/lib/irb/ext/save-history.rb @@ -27,7 +27,7 @@ module IRB IRB.conf[:SAVE_HISTORY] 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 # #init_save_history with this context. # |