class IRB::StdioInputMethod

def gets

See IO#gets for more information.

Reads the next line from this input method.
def gets
  print @prompt
  line = @stdin.gets
  @line[@line_no += 1] = line
end