1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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