Duplicated Ruby snippet `sel`