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

[ruby/reline] Add Reline.autocompletion=() interface

https://github.com/ruby/reline/commit/a2e69f6277
This commit is contained in:
aycabta 2021-08-30 01:40:06 +09:00
parent 935bb4c617
commit 3a2e2a6848

View file

@ -107,6 +107,14 @@ module Reline
@completion_proc = p
end
def autocompletion
@config.autocompletion
end
def autocompletion=(val)
@config.autocompletion = val
end
def output_modifier_proc=(p)
raise ArgumentError unless p.respond_to?(:call) or p.nil?
@output_modifier_proc = p