Update reopen class in ruby file