Method: Bundler::Thor::LineEditor::Readline#readline
- Defined in:
- lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb
#readline ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/bundler/vendor/thor/lib/thor/line_editor/readline.rb', line 13 def readline if echo? ::Readline.completion_append_character = nil # rb-readline does not allow Readline.completion_proc= to receive nil. if complete = completion_proc ::Readline.completion_proc = complete end ::Readline.readline(prompt, add_to_history?) else super end end |