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

Reline.completion_proc= should raise ArgumentError

When the value is not Proc.
This commit is contained in:
aycabta 2019-05-13 02:33:29 +09:00
parent 130ced9fb0
commit ebb15cc6c1

View file

@ -67,6 +67,7 @@ module Reline
@@completion_proc
end
def self.completion_proc=(p)
raise ArgumentError unless p.is_a?(Proc)
@@completion_proc = p
end