Ruby Class Template