Class: Readline

Inherits:
Object
  • Object
show all
Extended by:
IoSyncUtils
Defined in:
lib/iosync.rb

Class Method Summary collapse

Methods included from IoSyncUtils

ensure_newline, ensure_newline_array, ensure_newline_string, switch_ensure_newline

Class Method Details

.orig_readlineObject



66
# File 'lib/iosync.rb', line 66

alias_method :orig_readline, :readline

.readline(prompt, hist) ⇒ Object



68
69
70
# File 'lib/iosync.rb', line 68

def Readline::readline(prompt, hist)
  Readline::orig_readline(ensure_newline(prompt), hist)
end