Class | IRB::ReadlineInputMethod |
In: |
lib/irb/input-method.rb
|
Parent: | InputMethod |
# File lib/irb/input-method.rb, line 88 88: def initialize 89: super 90: 91: @line_no = 0 92: @line = [] 93: @eof = false 94: end
# File lib/irb/input-method.rb, line 96 96: def gets 97: if l = readline(@prompt, false) 98: HISTORY.push(l) if !l.empty? 99: @line[@line_no += 1] = l + "\n" 100: else 101: @eof = true 102: l 103: end 104: end