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:
parent
935bb4c617
commit
3a2e2a6848
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue