Add arg check to Reline.dig_perfect_match_proc=

This commit is contained in:
aycabta 2019-07-11 17:21:00 +09:00
parent 4e038a7e64
commit 71ead07872

View File

@ -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