Module: Reline
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Classes:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
SingleForwardable,
Forwardable
|
|
Defined in: | lib/reline.rb, lib/reline/version.rb |
Constant Summary
-
FILENAME_COMPLETION_PROC =
# File 'lib/reline.rb', line 13nil
-
HISTORY =
# File 'lib/reline.rb', line 470Reline::History.new(Reline.core.config)
-
IOGate =
# File 'lib/reline.rb', line 462Reline::ANSI
-
USERNAME_COMPLETION_PROC =
# File 'lib/reline.rb', line 14nil
-
VERSION =
# File 'lib/reline/version.rb', line 2'0.2.5'
Class Method Summary
Class Method Details
.core
[ GitHub ]# File 'lib/reline.rb', line 434
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
[ GitHub ]# File 'lib/reline.rb', line 430
def self.encoding_system_needs self.core.encoding end
.insert_text(*args, &block)
[ GitHub ]# File 'lib/reline.rb', line 414
def self.insert_text(*args, &block) line_editor.insert_text(*args, &block) self end
.line_editor
[ GitHub ]# File 'lib/reline.rb', line 453
def self.line_editor core.line_editor end
.ungetc(c)
[ GitHub ]# File 'lib/reline.rb', line 449
def self.ungetc(c) Reline::IOGate.ungetc(c) end