Spec-Zone.ru › Ruby 3.1

class Reline::LineEditor::DialogProcScope

Родитель:
Объект

Публичные Классовые Методы

new(line_editor, config, proc_to_exec, context) Показать исходный код
# File lib/reline/line_editor.rb, line 526
def initialize(line_editor, config, proc_to_exec, context)
  @line_editor = line_editor
  @config = config
  @proc_to_exec = proc_to_exec
  @context = context
  @cursor_pos = Reline::CursorPos.new
end

Публичные Методы Экземпляров

call() Показать исходный код
# File lib/reline/line_editor.rb, line 587
def call
  instance_exec(&@proc_to_exec)
end
call_completion_proc_with_checking_args(pre, target, post) Показать исходный код
# File lib/reline/line_editor.rb, line 542
def call_completion_proc_with_checking_args(pre, target, post)
  @line_editor.call_completion_proc_with_checking_args(pre, target, post)
end
completion_journey_data() Показать исходный код
# File lib/reline/line_editor.rb, line 579
def completion_journey_data
  @line_editor.instance_variable_get(:@completion_journey_data)
end
config() Показать исходный код
# File lib/reline/line_editor.rb, line 583
def config
  @config
end
context() Показать исходный код
# File lib/reline/line_editor.rb, line 534
def context
  @context
end
cursor_pos() Показать исходный код
# File lib/reline/line_editor.rb, line 567
def cursor_pos
  @cursor_pos
end
dialog() Показать исходный код
# File lib/reline/line_editor.rb, line 550
def dialog
  @dialog
end
just_cursor_moving() Показать исходный код
# File lib/reline/line_editor.rb, line 571
def just_cursor_moving
  @line_editor.instance_variable_get(:@just_cursor_moving)
end
key() Показать исходный код
# File lib/reline/line_editor.rb, line 563
def key
  @key
end
retrieve_completion_block(set_completion_quote_character = false) Показать исходный код
# File lib/reline/line_editor.rb, line 538
def retrieve_completion_block(set_completion_quote_character = false)
  @line_editor.retrieve_completion_block(set_completion_quote_character)
end
screen_width() Показать исходный код
# File lib/reline/line_editor.rb, line 575
def screen_width
  @line_editor.instance_variable_get(:@screen_size).last
end
set_cursor_pos(col, row) Показать исходный код
# File lib/reline/line_editor.rb, line 554
def set_cursor_pos(col, row)
  @cursor_pos.x = col
  @cursor_pos.y = row
end
set_dialog(dialog) Показать исходный код
# File lib/reline/line_editor.rb, line 546
def set_dialog(dialog)
  @dialog = dialog
end
set_key(key) Показать исходный код
# File lib/reline/line_editor.rb, line 559
def set_key(key)
  @key = key
end

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

Spec-Zone.ru

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