Reline.completion_proc= should raise ArgumentError
When the value is not Proc.
This commit is contained in:
parent
130ced9fb0
commit
ebb15cc6c1
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user