class Reline::LineEditor::DialogProcScope

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/reline/line_editor.rbs

class Reline::LineEditor::DialogProcScope
  def completion_journey_data: () -> nil
  def context: () -> untyped
  def cursor_pos: () -> Reline::CursorPos
  def dialog: () -> Reline::LineEditor::Dialog
  def initialize: (Reline::LineEditor line_editor, Reline::Config config, Proc proc_to_exec, Array[] context) -> void
  def just_cursor_moving: () -> false
  def retrieve_completion_block: (?true set_completion_quote_character) -> untyped
end

def call

def call
  instance_exec(&@proc_to_exec)
end

def call_completion_proc_with_checking_args(pre, target, post)

def call_completion_proc_with_checking_args(pre, target, post)
  @line_editor.call_completion_proc_with_checking_args(pre, target, post)
end

def completion_journey_data

Experimental RBS support (using type sampling data from the type_fusion project).

def completion_journey_data: () -> nil

This signature was generated using 2 samples from 1 application.

def completion_journey_data
  @line_editor.instance_variable_get(:@completion_journey_data)
end

def config

def config
  @config
end

def context

Experimental RBS support (using type sampling data from the type_fusion project).

def context: () -> untyped

This signature was generated using 1 sample from 1 application.

def context
  @context
end

def cursor_pos

Experimental RBS support (using type sampling data from the type_fusion project).

def cursor_pos: () -> Reline::CursorPos

This signature was generated using 1 sample from 1 application.

def cursor_pos
  @cursor_pos
end

def dialog

Experimental RBS support (using type sampling data from the type_fusion project).

def dialog: () -> Reline::LineEditor::Dialog

This signature was generated using 1 sample from 1 application.

def dialog
  @dialog
end

def initialize(line_editor, config, proc_to_exec, context)

Experimental RBS support (using type sampling data from the type_fusion project).

def initialize: (Reline::LineEditor line_editor, Reline::Config config, Proc proc_to_exec,  context) -> void

This signature was generated using 1 sample from 1 application.

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

def just_cursor_moving

Experimental RBS support (using type sampling data from the type_fusion project).

def just_cursor_moving: () -> false

This signature was generated using 1 sample from 1 application.

def just_cursor_moving
  @line_editor.instance_variable_get(:@just_cursor_moving)
end

def key

def key
  @key
end

def preferred_dialog_height

def preferred_dialog_height
  rest_height = @line_editor.instance_variable_get(:@rest_height)
  scroll_partial_screen = @line_editor.instance_variable_get(:@scroll_partial_screen) || 0
  [cursor_pos.y - scroll_partial_screen, rest_height, (screen_height + 6) / 5].max
end

def retrieve_completion_block(set_completion_quote_character = false)

Experimental RBS support (using type sampling data from the type_fusion project).

def retrieve_completion_block: (?true set_completion_quote_character) -> untyped

This signature was generated using 1 sample from 1 application.

def retrieve_completion_block(set_completion_quote_character = false)
  @line_editor.retrieve_completion_block(set_completion_quote_character)
end

def screen_height

def screen_height
  @line_editor.instance_variable_get(:@screen_size).first
end

def screen_width

def screen_width
  @line_editor.instance_variable_get(:@screen_size).last
end

def set_cursor_pos(col, row)

def set_cursor_pos(col, row)
  @cursor_pos.x = col
  @cursor_pos.y = row
end

def set_dialog(dialog)

def set_dialog(dialog)
  @dialog = dialog
end

def set_key(key)

def set_key(key)
  @key = key
end