method
gets
v1_9_3_125 -
Show latest stable
- Class:
IRB::ReadlineInputMethod
gets()public
No documentation available.
# File lib/irb/input-method.rb, line 112
def gets
Readline.input = @stdin
Readline.output = @stdout
if l = readline(@prompt, false)
HISTORY.push(l) if !l.empty?
@line[@line_no += 1] = l + "\n"
else
@eof = true
l
end
end