Ruby gem for class