diff options
author | Masataka Pocke Kuwabara <kuwabara@pocke.me> | 2019-06-13 16:09:02 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-07-15 00:13:01 +0900 |
commit | 9806da50f49843c6983e3110a23ab7822c2e089d (patch) | |
tree | 4cbca881fd333342813d9a1215ab328356d8ee3c /lib/irb/ext/save-history.rb | |
parent | 83171b0ee8dc8000819259bde764ea9ca3489290 (diff) |
Suppress warnings
Diffstat (limited to 'lib/irb/ext/save-history.rb')
-rw-r--r-- | lib/irb/ext/save-history.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 <code>IRB.conf[:SAVE_HISTORY]</code> to the given +val+ and calls # #init_save_history with this context. # |