Class: Bond::Rawline
Overview
A pure ruby readline which requires rawline.
Constant Summary
Constants inherited from Readline
Bond::Readline::DefaultBreakCharacters
Class Method Summary collapse
Methods inherited from Readline
load_extension, readline_setup
Class Method Details
.line_buffer ⇒ Object
12 13 14 |
# File 'lib/bond/readlines/rawline.rb', line 12 def self.line_buffer Rawline.editor.line.text end |
.setup(agent) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/bond/readlines/rawline.rb', line 3 def self.setup(agent) require 'rawline' Rawline.completion_append_character = nil Rawline.basic_word_break_characters= " \t\n\"\\'`><;|&{(" Rawline.completion_proc = agent rescue LoadError abort "Bond Error: rawline gem is required for this readline plugin -> gem install rawline" end |