[前][次][番号順一覧][スレッド一覧]

ruby-changes:67349

From: aycabta <ko1@a...>
Date: Mon, 30 Aug 2021 02:37:41 +0900 (JST)
Subject: [ruby-changes:67349] 3a2e2a6848 (master): [ruby/reline] Add Reline.autocompletion=() interface

https://git.ruby-lang.org/ruby.git/commit/?id=3a2e2a6848

From 3a2e2a684824c8c60badd78bc30f1205ead2938c Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 30 Aug 2021 01:40:06 +0900
Subject: [ruby/reline] Add Reline.autocompletion=() interface

https://github.com/ruby/reline/commit/a2e69f6277
---
 lib/reline.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/reline.rb b/lib/reline.rb
index f5ebe79..f335328 100644
--- a/lib/reline.rb
+++ b/lib/reline.rb
@@ -107,6 +107,14 @@ module Reline https://github.com/ruby/ruby/blob/trunk/lib/reline.rb#L107
       @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
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]