Method: Bond::Readline.setup
- Defined in:
- lib/bond/readline.rb
.setup(agent) ⇒ Object
Loads the readline-like library and sets the completion_proc to the given agent.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/bond/readline.rb', line 7 def self.setup(agent) readline_setup # Reinforcing irb defaults Readline.completion_append_character = nil if Readline.respond_to?("basic_word_break_characters=") Readline.basic_word_break_characters = DefaultBreakCharacters end Readline.completion_proc = agent end |