From bd363addc81d461ddbd54a2b3afc0cd4b0ba4017 Mon Sep 17 00:00:00 2001 From: hsbt Date: Fri, 15 Apr 2016 11:27:38 +0000 Subject: * 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 --- lib/irb/ext/save-history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 IRB.conf[:SAVE_HISTORY] to the given +val+ and calls # #init_save_history with this context. # -- cgit v1.2.3