Spec-Zone.ru › Ruby 3.4

модуль Reline

Константы

CursorPos
DEFAULT_DIALOG_CONTEXT
DEFAULT_DIALOG_PROC_AUTOCOMPLETE
DialogRenderInfo
FILENAME_COMPLETION_PROC

ПРИМЕЧАНИЕ: Для совместимости с драгоценным камнем rb-readline

GeneralIO

Устарело

HISTORY
IOGate
Ключ

Ключ EOF: { char: null, method_symbol: null } Другой ключ: { char: String, method_symbol: Symbol }

USERNAME_COMPLETION_PROC
VERSION

Публичные методы класса

core ()
Исходный код
# File lib/reline.rb, line 486
def self.core
  @core ||= Core.new { |core|
    core.config = Reline::Config.new
    core.key_stroke = Reline::KeyStroke.new(core.config, core.encoding)
    core.line_editor = Reline::LineEditor.new(core.config)

    core.basic_word_break_characters = " \t\n`><=;|&{("
    core.completer_word_break_characters = " \t\n`><=;|&{("
    core.basic_quote_characters = '"\''
    core.completer_quote_characters = '"\''
    core.filename_quote_characters = ""
    core.special_prefixes = ""
    core.add_dialog_proc(:autocomplete, Reline::DEFAULT_DIALOG_PROC_AUTOCOMPLETE, Reline::DEFAULT_DIALOG_CONTEXT)
  }
end
encoding_system_needs ()
Исходный код
# File lib/reline.rb, line 482
def self.encoding_system_needs
  self.core.encoding
end
insert_text (text)
Исходный код
# File lib/reline.rb, line 463
def self.insert_text(text)
  line_editor.insert_multiline_text(text)
  self
end
line_editor ()
Исходный код
# File lib/reline.rb, line 506
def self.line_editor
  core.line_editor
end
ungetc (c)
Исходный код
# File lib/reline.rb, line 502
def self.ungetc(c)
  core.io_gate.ungetc(c)
end

Ruby Core © 1993–2024 Yukihiro Matsumoto
Licensed under the Ruby License.
Ruby Standard Library © contributors
Licensed under their own licenses.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API