Any reason to not use IO#read_line and avoid this method?