diff options
author | tomoya ishida <[email protected]> | 2023-10-12 02:08:59 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-10-11 17:09:05 +0000 |
commit | 94cb5765e2e44716800cd466c64f81c048aaf95b (patch) | |
tree | 8e372dac7478a36582b9de656731361924515788 /lib/irb/ws-for-case-2.rb | |
parent | b9a6fca67d97f7319b20b24427d6dc4b8290cd24 (diff) |
[ruby/irb] Rename current completor to RegexpCompletor and
refactored for future extension
(https://github.com/ruby/irb/pull/707)
* Move completion implementation to completion/regexp_completor for future extension
* Remove constant CompletionProc and PerfectMatchedProc and add a class method
* Move document display logic to InputCompletor. Each completor only need to implement `completion_caididates` and `doc_namespace`
* Move display_document logic to RelineInputMethod
* Use RegexpCompletor directly. Not through class method of InputCompletor.
* RegexpCompletor extends BaseCompletor, move back definition to completion.rb
* Move display_document test to input_method test
* Stop re-initialize completor on each completion phase
* Store completor to ReadlineInputMethod's iver
https://github.com/ruby/irb/commit/1e98521483
Diffstat (limited to 'lib/irb/ws-for-case-2.rb')
0 files changed, 0 insertions, 0 deletions