Module: Reline
- Extended by:
- Forwardable, SingleForwardable
- Defined in:
- lib/reline.rb,
lib/reline/version.rb
Defined Under Namespace
Modules: KeyActor
Classes: ANSI, Config, Core, CursorPos, GeneralIO, History, Key, KeyStroke, KillRing, LineEditor, Unicode, Windows
Constant Summary
collapse
- FILENAME_COMPLETION_PROC =
nil
- USERNAME_COMPLETION_PROC =
nil
- HISTORY =
History.new(core.config)
- IOGate =
Reline::ANSI
- VERSION =
'0.1.2'
Class Method Summary
collapse
Class Method Details
.core ⇒ Object
390
391
392
393
394
395
396
397
398
399
400
401
402
403
|
# File 'lib/reline.rb', line 390
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 = ""
}
end
|
.insert_text(*args, &block) ⇒ Object
374
375
376
377
|
# File 'lib/reline.rb', line 374
def self.insert_text(*args, &block)
line_editor.insert_text(*args, &block)
self
end
|
.line_editor ⇒ Object
405
406
407
|
# File 'lib/reline.rb', line 405
def self.line_editor
core.line_editor
end
|