From 9806da50f49843c6983e3110a23ab7822c2e089d Mon Sep 17 00:00:00 2001 From: Masataka Pocke Kuwabara Date: Thu, 13 Jun 2019 16:09:02 +0900 Subject: Suppress warnings --- lib/irb/ext/save-history.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb/ext/save-history.rb') diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb index 8ee5d269e6..9aeb5dee0c 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= if respond_to?(:save_history=) + remove_method :save_history= if method_defined?(:save_history=) # Sets IRB.conf[:SAVE_HISTORY] to the given +val+ and calls # #init_save_history with this context. # -- cgit v1.2.3