Start of wait next in ruby