In Files

  • reline/line_editor.rb

Reline::LineEditor

Attributes

auto_indent_proc[RW]
byte_pointer[R]
completion_append_character[RW]
completion_proc[RW]
confirm_multiline_termination_proc[RW]
dig_perfect_match_proc[RW]
line[R]

TODO: undo TODO: Use “private alias_method” idiom after drop Ruby 2.5.

output[W]
output_modifier_proc[RW]
pre_input_hook[RW]
prompt_proc[RW]

Public Class Methods

new(config, encoding) click to toggle source
 
               # File reline/line_editor.rb, line 56
def initialize(config, encoding)
  @config = config
  @completion_append_character = ''
  reset_variables(encoding: encoding)
end
            

Public Instance Methods

set_pasting_state(in_pasting) click to toggle source
 
               # File reline/line_editor.rb, line 62
def set_pasting_state(in_pasting)
  @in_pasting = in_pasting
end
            
simplified_rendering?() click to toggle source
 
               # File reline/line_editor.rb, line 66
def simplified_rendering?
  if finished?
    false
  elsif @just_cursor_moving and not @rerender_all
    true
  else
    not @rerender_all and not finished? and @in_pasting
  end
end
            
There is an updated format of the API docs for this version here.