123456789_123456789_123456789_123456789_123456789_

Module: Reline

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, SingleForwardable, Forwardable
Defined in: lib/reline.rb,
lib/reline/io.rb,
lib/reline/version.rb

Constant Summary

Class Method Summary

Class Method Details

.core

[ GitHub ]

  
# File 'lib/reline.rb', line 485

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)

    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

[ GitHub ]

  
# File 'lib/reline.rb', line 481

def self.encoding_system_needs
  self.core.encoding
end

.insert_text(text)

[ GitHub ]

  
# File 'lib/reline.rb', line 462

def self.insert_text(text)
  line_editor.insert_multiline_text(text)
  self
end

.line_editor

[ GitHub ]

  
# File 'lib/reline.rb', line 505

def self.line_editor
  core.line_editor
end

.ungetc(c)

[ GitHub ]

  
# File 'lib/reline.rb', line 501

def self.ungetc(c)
  core.io_gate.ungetc(c)
end