cases of ruby self learning