Spec-Zone.ru › Ruby 3

модуль Reline

Константы

CursorPos
FILENAME_COMPLETION_PROC
HISTORY
IOGate
Key
USERNAME_COMPLETION_PROC

Методы публичного класса

core() Показать исходный код
# File lib/reline.rb, line 432
def self.core
  @core ||= Core.new { |core|
    core.config = Reline::Config.new
    core.key_stroke = Reline::KeyStroke.new(core.config)
    core.line_editor = Reline::LineEditor.new(core.config, Reline::IOGate.encoding)

    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 = ""
  }
end
encoding_system_needs() Показать исходный код
# File lib/reline.rb, line 428
def self.encoding_system_needs
  self.core.encoding
end
insert_text(*args, &block) Показать исходный код
# File lib/reline.rb, line 412
def self.insert_text(*args, &block)
  line_editor.insert_text(*args, &block)
  self
end
line_editor() Показать исходный код
# File lib/reline.rb, line 447
def self.line_editor
  core.line_editor
end

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

Spec-Zone.ru

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