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:
parent
130ced9fb0
commit
ebb15cc6c1
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue