From 71ead0787283b469f5e834cb1868a8caa78702f1 Mon Sep 17 00:00:00 2001 From: aycabta Date: Thu, 11 Jul 2019 17:21:00 +0900 Subject: [PATCH] Add arg check to Reline.dig_perfect_match_proc= --- lib/reline.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/reline.rb b/lib/reline.rb index c27e4a380d..bf8967c561 100644 --- a/lib/reline.rb +++ b/lib/reline.rb @@ -208,6 +208,7 @@ module Reline @@dig_perfect_match_proc end def self.dig_perfect_match_proc=(p) + raise ArgumentError unless p.is_a?(Proc) @@dig_perfect_match_proc = p end