ruby base study