Add reopen class in ruby file