Class: LLM::Shell::Completion
- Inherits:
-
Object
- Object
- LLM::Shell::Completion
- Defined in:
- lib/llm/shell/completion.rb
Class Method Summary collapse
-
.to_proc ⇒ Proc
Returns a proc suitable for Readline completion.
Instance Method Summary collapse
-
#initialize ⇒ LLM::Shell::Completion
constructor
-
#to_proc ⇒ Proc
Returns a proc suitable for Readline completion.
Constructor Details
#initialize ⇒ LLM::Shell::Completion
14 15 16 |
# File 'lib/llm/shell/completion.rb', line 14 def initialize @commands = LLM.commands end |
Class Method Details
.to_proc ⇒ Proc
Returns a proc suitable for Readline completion.
8 9 10 |
# File 'lib/llm/shell/completion.rb', line 8 def self.to_proc new.to_proc end |
Instance Method Details
#to_proc ⇒ Proc
Returns a proc suitable for Readline completion.
21 22 23 |
# File 'lib/llm/shell/completion.rb', line 21 def to_proc method(:complete).to_proc end |